3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(strcmp('admin', 'admin')); var_dump(strcmp("admin", 'admin')); var_dump(strcmp(array('admi'), 'admin')); var_dump(strcmp('admin', 'admin')); var_dump(strcmp('admin', 'admin'));
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(0) int(0) Warning: strcmp() expects parameter 1 to be string, array given in /in/aIs9T on line 4 NULL int(0) int(0)
Output for 4.3.0 - 5.2.17
int(0) int(0) Notice: Array to string conversion in /in/aIs9T on line 4 int(-32) int(0) int(0)