3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [3, 1, 2]; $b = [4, 5, 6]; usort($a, function() { usort($b, function() { return 0; }); return 1; });
based on apXsZ
Output for 7.0.0 - 7.2.0
Warning: usort() expects parameter 1 to be array, null given in /in/VTDGb on line 9 Warning: usort() expects parameter 1 to be array, null given in /in/VTDGb on line 9 Warning: usort() expects parameter 1 to be array, null given in /in/VTDGb on line 9
Output for 5.4.12 - 5.6.28
Warning: usort() expects parameter 1 to be array, null given in /in/VTDGb on line 9 Warning: usort() expects parameter 1 to be array, null given in /in/VTDGb on line 9
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/VTDGb on line 3
Process exited with code 255.