3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(strcmp('a','b'))print 'alala'; if(strcmp('a','a'))print 'ololo'; if(strcmp(array(),'b'))print 'azaza';
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
alala Warning: strcmp() expects parameter 1 to be string, array given in /in/tDOO1 on line 4
Output for hhvm-3.10.0
alala Warning: strcmp() expects parameter 1 to be string, array given in /in/tDOO1 on line -1
Output for 4.3.0 - 5.2.17
alala Notice: Array to string conversion in /in/tDOO1 on line 4 azaza