3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(1); var_dump(strcmp($arr,'a'));
Output for 5.3.0 - 7.3.0rc3
Warning: strcmp() expects parameter 1 to be string, array given in /in/8AGL1 on line 5 NULL
Output for 4.3.0 - 5.2.17
Notice: Array to string conversion in /in/8AGL1 on line 5 int(-32)