3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$json = "{'hello' : 'wow'}"; $json = {"hello":"wow"}; $array = array("hello" => "wow"); //$json = json_encode($array); $decode = json_decode($json, TRUE); //print_r($decode); echo $json;

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)
5.4.320.0300.06018.95
5.4.310.0270.04719.06
5.4.300.0200.06319.23
5.4.290.0300.06018.96
5.4.280.0370.07019.31
5.4.270.0300.08019.27
5.4.260.0370.05019.23
5.4.250.0300.05018.96
5.4.240.0230.04019.07
5.4.230.0330.07018.84
5.4.220.0300.04719.13
5.4.210.0370.06318.99
5.4.200.0230.04319.30
5.4.190.0470.03318.97
5.4.180.0400.05719.24
5.4.170.0300.07319.16
5.4.160.0230.06718.97
5.4.150.0300.06318.95
5.4.140.0300.05716.50
5.4.130.0270.04716.52
5.4.120.0300.06016.38
5.4.110.0270.03716.36
5.4.100.0330.04316.58
5.4.90.0300.05716.50
5.4.80.0300.04716.51
5.4.70.0300.07016.26
5.4.60.0370.04016.43
5.4.50.0300.05316.16
5.4.40.0370.05316.43
5.4.30.0300.07316.42
5.4.20.0270.03316.42
5.4.10.0270.04016.53
5.4.00.0330.06015.75
5.3.290.0330.04014.61
5.3.280.0370.04314.68
5.3.270.0330.04714.44
5.3.260.0330.07314.51
5.3.250.0300.05714.45
5.3.240.0370.06714.44
5.3.230.0300.07014.43
5.3.220.0300.07014.40
5.3.210.0270.04014.66
5.3.200.0330.03014.50
5.3.190.0330.07314.41
5.3.180.0330.04014.54
5.3.170.0270.04314.42
5.3.160.0300.06714.52
5.3.150.0330.07014.38
5.3.140.0300.07014.46
5.3.130.0370.04014.39
5.3.120.0400.06014.60
5.3.110.0270.04014.50
5.3.100.0200.05013.88
5.3.90.0300.07013.97
5.3.80.0370.05313.85
5.3.70.0270.04313.96
5.3.60.0230.03713.95
5.3.50.0330.06313.82
5.3.40.0400.06013.85
5.3.30.0330.04313.76
5.3.20.0270.04313.47
5.3.10.0470.05013.60
5.3.00.0330.06013.54
5.2.170.0170.04711.15
5.2.160.0270.03711.18
5.2.150.0300.04311.19
5.2.140.0230.05010.98
5.2.130.0270.03311.26
5.2.120.0300.05011.04
5.2.110.0270.05711.04
5.2.100.0330.05310.93
5.2.90.0330.04710.95
5.2.80.0200.04710.95
5.2.70.0230.06010.98
5.2.60.0300.05010.90
5.2.50.0200.06711.16
5.2.40.0230.05310.92
5.2.30.0200.06311.14
5.2.20.0200.05710.87
5.2.10.0170.04710.81
5.2.00.0170.04010.62
5.1.60.0230.0509.96
5.1.50.0200.0479.89
5.1.40.0170.0379.89
5.1.30.0230.04710.25
5.1.20.0170.05310.44
5.1.10.0200.0409.98
5.1.00.0230.04710.23
5.0.50.0100.0439.68
5.0.40.0100.0439.68
5.0.30.0130.0609.68
5.0.20.0100.0239.68
5.0.10.0100.0439.68
5.0.00.0130.0579.68
4.4.90.0170.0279.68
4.4.80.0170.0309.68
4.4.70.0170.0279.68
4.4.60.0200.0279.68
4.4.50.0100.0209.68
4.4.40.0130.0579.68
4.4.30.0130.0239.68
4.4.20.0070.0409.68
4.4.10.0130.0339.68
4.4.00.0200.0509.68
4.3.110.0130.0179.68
4.3.100.0070.0239.68
4.3.90.0130.0309.68
4.3.80.0070.0579.68
4.3.70.0100.0339.68
4.3.60.0130.0179.68
4.3.50.0070.0179.68
4.3.40.0130.0479.68
4.3.30.0030.0209.68
4.3.20.0070.0279.68
4.3.10.0070.0179.68
4.3.00.0070.0179.68

preferences:
139.47 ms | 1394 KiB | 7 Q