3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print var_export(strcmp('a','b'))."\n".var_export(strcmp('a','a'))."\n".var_export(strcmp(array(),'a'));
Output for 5.3.0 - 7.1.0
-10 Warning: strcmp() expects parameter 1 to be string, array given in /in/bo7Nu on line 2 NULL
Output for 4.3.0 - 5.2.17
-10 Notice: Array to string conversion in /in/bo7Nu on line 2 -32