3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (int)strcmp('pending',array());
Output for 5.3.0 - 5.6.30, hhvm-3.10.1 - 3.21.3, 7.0.0 - 7.2.0
Warning: strcmp() expects parameter 2 to be string, array given in /in/NpRP7 on line 3 0
Output for hhvm-3.22.0
Warning: strcmp() expects parameter 2 to be string, array given in /in/NpRP7 on line -1 0
Output for 4.3.0 - 5.2.17
Notice: Array to string conversion in /in/NpRP7 on line 3 47