3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = '{"0":1576,"1":1556,"2":1579,"3":1541,"4":1578,"5":1559,"6":1558,"7":1548,"8":1654,"9":1653,"10":1510,"11":1674}'; $ids = json_decode($json, true); foreach($ids as $value) { echo $value.PHP_EOL; }
based on aNtk3
Output for 5.2.0 - 7.2.0
1576 1556 1579 1541 1578 1559 1558 1548 1654 1653 1510 1674
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/bu2hc on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/bu2hc on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/bu2hc on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/bu2hc on line 5