3v4l.org

run code in 150+ 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."\n"; }
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
4 3
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
<br /> <b>Warning</b>: Wrong parameter count for range() in <b>/in/liSEI</b> on line <b>2</b><br /> <br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/in/liSEI</b> on line <b>2</b><br />
Output for 4.3.11
<br /> <b>Warning</b>: Wrong parameter count for range() in <b>/in/liSEI</b> on line <b>2</b><br />