3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(strcmp('Narendra','Narendra')).PHP_EOL; var_dump(strcmp('NarendraSisodia','Narendra')).PHP_EOL; var_dump(strcmp('SisodiaNarendra','Narendra')).PHP_EOL; var_dump(strcmp('Narendra','narendra')).PHP_EOL;
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc2
int(0) int(7) int(5) int(-32)
Output for hhvm-3.18.5 - 3.22.0
int(0) int(7) int(1) int(-1)