3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = '0.3'; $b = '.5'; $c = '4'; $d = 'F'; $e = 'z'; $f = 4; $r1 = sort(array($d, $e, $a, $f, $b, $c)); $r2 = sort(array($d, $e, $b, $f, $c, $a)); var_dump($r1); var_dump($r2);
Output for 5.3.0 - 5.4.23
Fatal error: Only variables can be passed by reference in /in/gZRf1 on line 5
Process exited with code 255.