3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test["abc"] = true; $test["abc"] = $test["abc"] ? $test["abc"] : false; $data = json_encode($test); $test1 = json_decode($data); $val = $test[""abc]; echo "testabc ".$test['abc']." test1abc".$test1["abc"];

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.0.10.0100.05020.33
7.0.00.0130.05720.16
5.6.160.0030.08020.39
5.6.150.0130.07318.19
5.6.140.0030.04018.18
5.6.130.0070.03718.18
5.6.120.0170.07321.02
5.6.110.0100.08720.98
5.6.100.0100.04720.97
5.6.90.0130.07721.03
5.6.80.0030.04020.51
5.5.300.0130.07318.03
5.5.290.0030.05017.95
5.5.280.0070.08720.77
5.5.270.0100.08020.76
5.5.260.0200.07720.95
5.5.250.0130.06320.50
5.5.240.0130.07020.36

preferences:
137.33 ms | 1394 KiB | 7 Q