3v4l.org

run code in 200+ PHP versions simultaneously
<?php $array = array(); for ($i = 0; $i < 50000; $i++) $array = array($array); json_encode($array);
Output for 5.2.0 - 7.4.0

Process exited with code 139.
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/NfMgi on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/NfMgi on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/NfMgi on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/NfMgi on line 8