3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(1, 3, 6, 4, 1, 2); $arr = natsort($arr); foreach ($arr as $a) { echo $a; }
based on tSYVC
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Warning: Invalid argument supplied for foreach() in /in/ZbJkL on line 5
Output for hhvm-3.22.0
Warning: Invalid argument supplied for foreach() in /in/ZbJkL on line -1
Output for hhvm-3.18.5 - 3.21.3
Warning: Invalid argument supplied for foreach() in /in/ZbJkL on line 7