3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print strcmp('a','a'); print strcmp('b','a'); print strcmp('ba','a'); print strcmp('ab','a'); print strcmp(array(),'a');
Output for 5.3.0 - 7.1.0
0111 Warning: strcmp() expects parameter 1 to be string, array given in /in/eSXtZ on line 6
Output for 4.3.0 - 5.2.17
0111 Notice: Array to string conversion in /in/eSXtZ on line 6 -32