3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (range(4, 3, -1) as $depth) { // var_dump(json_decode($json, true, $depth)); //echo 'Last error: ', $json_errors[json_last_error()], PHP_EOL, PHP_EOL; echo $depth; }
Output for 5.0.0 - 7.2.0
43
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
Warning: Wrong parameter count for range() in /in/G52VK on line 2 Warning: Invalid argument supplied for foreach() in /in/G52VK on line 2
Output for 4.3.11
Warning: Wrong parameter count for range() in /in/G52VK on line 2