3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(call_user_func_array('sort', array(array('foo'))));
Output for hhvm-3.10.0, 7.1.0
Warning: Parameter 1 to sort() expected to be a reference, value given in /in/dZc3L on line 3 bool(true)
Output for 7.0.0 - 7.0.14
Warning: Parameter 1 to sort() expected to be a reference, value given in /in/dZc3L on line 3 NULL
Output for hhvm-3.12.0
Warning: Parameter 1 to sort() expected to be a reference, value given in /in/dZc3L on line -1 bool(true)
Output for 4.3.0 - 5.6.28
bool(true)