Description
The following code:
<?php
$a = "foosa";
$b = "fooaaaaaaaaaaaaaaaaaaaaaaaaaaa";
var_dump(strcmp($a,$b)); // int(18)
The document says it only returns -1,0,1. In practice, it still returns a negative or positive value.
If the negative or positive values are expected, then the following case returns a huge value, which is unexpected to me.
https://3v4l.org/4dV2h/rfc#vgit.master
PHP Version
nightly
Operating System
ubuntu 22.04