3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "what the h "; $json = json_encode(array("c" =>array(),"b" => array())); $decodeJSON = json_decode($json,true); var_dump($decodeJSON); test($decodeJSON, array("a","b")); echo "<br/> here is what should be new unencoded json <br/>"; var_dump($decodeJSON); function test (&$jContent, $arr) { foreach($jContent as &$arrayName => $array) { $arrayName = "lll "; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.1.30.1200.05336.50
7.1.20.1430.06736.40
7.1.10.2900.06320.37
7.1.00.1500.06720.55
7.0.170.1330.06020.00
7.0.160.0900.06020.07
7.0.150.1400.06019.98
7.0.140.1300.07320.07
7.0.130.2300.08720.02
7.0.120.1270.07319.98
7.0.110.1270.05720.02
7.0.100.1570.07720.14
7.0.90.1770.08020.12
7.0.80.1170.06319.89
7.0.70.1370.05720.07
7.0.60.1170.06019.77
7.0.50.1500.07720.08
7.0.40.1430.05019.98
7.0.30.1070.06720.02
7.0.20.0830.06720.16
7.0.10.1030.06719.97
7.0.00.1470.08719.98

preferences:
144.03 ms | 1394 KiB | 7 Q