3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode('{"3":{"friend":45,"all":100},"2":{"friend":30,"all":50},"1":{"friend":25,"all":25}}'); var_dump((array) $a); var_dump($a[(string) 3]);

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)
8.3.60.0090.00618.55
8.3.50.0110.00621.21
8.3.40.0110.00718.83
8.3.30.0110.00318.79
8.3.20.0030.00520.10
8.3.10.0050.00321.92
8.3.00.0080.00022.46
8.2.180.0150.00016.75
8.2.170.0090.00618.72
8.2.160.0180.00022.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00419.64
8.2.110.0000.00919.29
8.2.100.0030.00919.57
8.2.90.0000.00719.23
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0030.00517.93
8.2.50.0050.00318.07
8.2.40.0040.00418.09
8.2.30.0030.00818.04
8.2.20.0000.01017.83
8.2.10.0040.00417.58
8.2.00.0030.00617.61
8.1.280.0120.00325.92
8.1.270.0000.00822.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00422.25
8.1.230.0060.00619.07
8.1.220.0000.00817.76
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.29
8.1.180.0040.00418.66
8.1.170.0030.00518.59
8.1.160.0070.00022.17
8.1.150.0000.00718.52
8.1.140.0050.00217.37
8.1.130.0030.00317.78
8.1.120.0040.00417.36
8.1.110.0000.00917.39
8.1.100.0020.00517.38
8.1.90.0000.00717.44
8.1.80.0000.00717.32
8.1.70.0030.00317.38
8.1.60.0000.01217.59
8.1.50.0000.00717.49
8.1.40.0000.00817.47
8.1.30.0020.00517.48
8.1.20.0030.00617.55
8.1.10.0000.00817.55
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0050.00318.30
8.0.270.0070.00017.06
8.0.260.0070.00016.85
8.0.250.0030.00317.01
8.0.240.0030.00716.95
8.0.230.0040.00416.89
8.0.220.0000.00816.77
8.0.210.0040.00316.85
8.0.200.0080.00016.98
8.0.190.0050.00516.91
8.0.180.0000.00716.86
8.0.170.0040.00416.83
8.0.160.0060.00316.74
8.0.150.0070.00016.84
8.0.140.0040.00416.73
8.0.130.0060.00013.28
8.0.120.0000.00816.88
8.0.110.0040.00416.86
8.0.100.0000.00716.71
8.0.90.0000.00716.75
8.0.80.0060.00916.86
8.0.70.0000.00816.91
8.0.60.0080.00016.86
8.0.50.0040.00416.79
8.0.30.0190.00417.18
8.0.20.0110.00917.40
8.0.10.0050.00416.83
8.0.00.0100.00716.85
7.4.330.0050.00016.76
7.4.320.0000.00616.42
7.4.300.0030.00316.48
7.4.290.0030.00716.52
7.4.280.0000.00716.61
7.4.270.0040.00416.48
7.4.260.0070.00016.40
7.4.250.0070.00016.45
7.4.240.0020.00516.46
7.4.230.0030.00316.61
7.4.220.0130.00416.55
7.4.210.0060.00916.62
7.4.200.0000.00716.33
7.4.190.0030.00516.45
7.4.160.0090.01316.48
7.4.150.0100.00717.40
7.4.140.0090.00917.86
7.4.130.0150.00516.54
7.4.120.0130.00916.54
7.4.110.0140.00316.54
7.4.100.0120.01216.61
7.4.90.0060.01516.37
7.4.80.0130.00319.39
7.4.70.0050.01316.45
7.4.60.0090.00916.59
7.4.50.0000.00516.23
7.4.40.0070.00722.77
7.4.30.0130.00316.49
7.4.00.0040.00814.79
7.3.330.0050.00013.22
7.3.320.0050.00013.22
7.3.310.0030.00316.11
7.3.300.0030.00316.30
7.3.290.0060.01016.32
7.3.280.0090.00616.35
7.3.270.0100.00617.40
7.3.260.0100.01016.40
7.3.250.0120.00416.40
7.3.240.0070.01116.36
7.3.230.0030.01616.50
7.3.210.0100.01016.29
7.3.200.0170.00319.39
7.3.190.0130.01016.43
7.3.180.0150.00516.52
7.3.170.0030.01516.33
7.3.160.0080.00816.29
7.3.120.0100.00614.65
7.3.10.0000.00916.71
7.3.00.0070.00316.39
7.2.330.0150.00316.79
7.2.320.0040.01316.71
7.2.310.0090.00816.35
7.2.300.0130.00316.60
7.2.290.0150.00716.50
7.2.130.0030.00616.71
7.2.120.0030.00916.98
7.2.110.0090.00316.63
7.2.100.0000.01217.02
7.2.90.0070.00717.02
7.2.80.0100.00316.65
7.2.70.0000.00917.12
7.2.60.0070.00317.02
7.2.50.0040.01116.85
7.2.40.0040.00716.94
7.2.30.0030.01016.82
7.2.20.0030.00916.84
7.2.10.0000.01016.80
7.2.00.0080.00718.30
7.1.250.0040.00415.88
7.1.200.0000.01515.88
7.1.100.0000.01118.24
7.1.70.0100.00017.23
7.1.60.0030.02119.82
7.1.50.0000.01117.12
7.1.00.0030.03322.45
7.0.200.0000.01016.44
7.0.140.0130.06722.19
7.0.60.0030.04319.94
7.0.50.0000.05017.84
7.0.40.0000.04720.07
7.0.30.0100.04720.00
7.0.20.0400.07720.12
7.0.10.0070.04320.20
7.0.00.0070.06320.13
5.6.280.0030.07320.89
5.6.210.0130.07720.70
5.6.200.0070.08018.14
5.6.190.0070.08320.41
5.6.180.0330.05320.39
5.6.170.0270.05720.55
5.6.160.0100.08020.47
5.6.150.0100.05718.12
5.6.140.0070.08018.16
5.6.130.0030.07018.21
5.6.120.0070.08320.99
5.6.110.0070.07020.96
5.6.100.0130.07721.00
5.6.90.0070.06020.95
5.6.80.0070.08720.40
5.6.70.4630.03320.36
5.5.350.0070.08020.29
5.5.340.0070.04718.02
5.5.330.0000.04720.47
5.5.320.0170.05320.13
5.5.310.0370.08020.41
5.5.300.0030.04717.96
5.5.290.0100.07718.02
5.5.280.0170.07020.73
5.5.270.0170.06020.95
5.5.260.0070.07320.76
5.5.250.0200.07320.68
5.5.240.0030.07720.25
5.4.450.0370.06719.53
5.4.440.0800.08319.58
5.4.430.1070.05319.14
5.4.420.0170.06319.42
5.4.410.1470.06719.30
5.4.400.1070.06018.53
5.4.390.1270.04318.74
5.4.380.0300.05318.71
5.4.370.0230.04718.55
5.4.360.0170.05318.70
5.4.350.0200.05718.53
5.4.340.0330.04318.69
5.4.320.0050.04412.46
5.4.310.0060.04312.45
5.4.300.0060.04312.46
5.4.290.0030.04412.46
5.4.280.0050.03612.36
5.4.270.0060.04412.35
5.4.260.0050.03812.36
5.4.250.0130.04718.83
5.4.240.0130.05018.91
5.4.230.0100.05018.73
5.4.220.0130.05718.99
5.4.210.0170.07019.02
5.4.200.0170.04018.92
5.4.190.0030.06318.79
5.4.180.0200.04018.93
5.4.170.0200.04318.87
5.4.160.0100.06719.00
5.4.150.0030.06718.82
5.4.140.0030.05316.49
5.4.130.0030.05316.51
5.4.120.0070.05016.28
5.4.110.0030.05316.36
5.4.100.0000.06016.44
5.4.90.0270.04316.42
5.4.80.0030.05716.40
5.4.70.0100.05016.32
5.4.60.0130.05016.50
5.4.50.0000.05316.49
5.4.40.0070.05016.51
5.4.30.0130.06316.31
5.4.20.0030.05716.37
5.4.10.0070.05016.32
5.4.00.0100.04315.95
5.3.290.0090.04112.80
5.3.280.0070.05014.59
5.3.270.0070.05014.45
5.3.260.0100.05014.52
5.3.250.0070.05014.45
5.3.240.0100.04714.63
5.3.230.0100.05014.30
5.3.220.0170.05714.57
5.3.210.0030.06014.73
5.3.200.0000.06014.57
5.3.190.0100.04714.57
5.3.180.0000.05714.71
5.3.170.0100.04714.26
5.3.160.0030.05314.45
5.3.150.0070.05014.45
5.3.140.0130.04714.57
5.3.130.0100.05014.56
5.3.120.0130.04714.40
5.3.110.0130.04314.32
5.3.100.0070.07014.04
5.3.90.0030.06013.94
5.3.80.0030.06313.85
5.3.70.0100.04313.95
5.3.60.0130.04713.85
5.3.50.0070.05314.10
5.3.40.0070.05313.96
5.3.30.0100.04713.94
5.3.20.0070.04713.68
5.3.10.0100.05013.35
5.3.00.0070.05013.65
5.2.170.0070.04011.15
5.2.160.0070.04011.14
5.2.150.0100.03711.16
5.2.140.0100.04311.15
5.2.130.0030.04311.20
5.2.120.0030.05311.00
5.2.110.0070.04011.19
5.2.100.0100.03711.00
5.2.90.0100.03711.13
5.2.80.0000.04711.10
5.2.70.0070.05710.97
5.2.60.0030.05310.95
5.2.50.0070.05311.03
5.2.40.0070.03711.01
5.2.30.0030.04710.86
5.2.20.0170.03710.84
5.2.10.0100.04310.95
5.2.00.0100.04010.88
5.1.60.0000.04010.02
5.1.50.0070.03310.03
5.1.40.0070.0379.91
5.1.30.0100.04310.33
5.1.20.0070.05010.56
5.1.10.0000.0579.95
5.1.00.0030.04010.11
5.0.50.0030.0438.63
5.0.40.0070.0238.33
5.0.30.0030.0437.98
5.0.20.0130.0238.25
5.0.10.0030.0408.40
5.0.00.0070.0508.20
4.4.90.0000.0307.52
4.4.80.0030.0237.52
4.4.70.0000.0337.52
4.4.60.0000.0237.52
4.4.50.0030.0237.52
4.4.40.0100.0307.52
4.4.30.0000.0277.52
4.4.20.0070.0207.52
4.4.10.0000.0237.52
4.4.00.0030.0337.52
4.3.110.0000.0237.52
4.3.100.0070.0177.52
4.3.90.0030.0207.52
4.3.80.0070.0437.52
4.3.70.0030.0277.52
4.3.60.0000.0307.52
4.3.50.0000.0337.52
4.3.40.0100.0307.52
4.3.30.0030.0277.52
4.3.20.0030.0277.52
4.3.10.0000.0237.52
4.3.00.0000.0237.18

preferences:
47.22 ms | 400 KiB | 5 Q