3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(7, NAN, 3,); sort(&$arr); var_dump($arr);
based on N5hXC
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected '&' in /in/X4lgZ on line 4
Process exited with code 255.
Output for 5.4.11 - 5.6.17
Fatal error: Call-time pass-by-reference has been removed in /in/X4lgZ on line 4
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/X4lgZ on line 4 array(3) { [0]=> int(3) [1]=> float(NAN) [2]=> int(7) }