3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i=1; $i<1000000; $i++) { json_encode($_SERVER); }
Output for 5.2.0 - 5.2.3, 5.2.6 - 5.3.29, 5.4.17, 5.4.36 - 5.4.38, 5.5.21, 5.6.1 - 5.6.2, 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.2.4 - 5.2.5, 5.4.0 - 5.4.16, 5.4.18 - 5.4.35, 5.4.39 - 5.5.20, 5.5.22 - 5.6.0, 5.6.3 - 5.6.20, 5.6.22 - 5.6.28

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