3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function sort($array){ asort($array); foreach($array as $v){ echo $v."<br>"; } } $arr[]="5"; $arr[]="2"; $arr[]="1"; $arr[]="4"; $arr[]="7"; sort($arr); ?>
based on eNjRe
Output for 5.6.38 - 7.3.0rc3
Fatal error: Cannot redeclare sort() in /in/MJSNZ on line 7
Process exited with code 255.