3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode('{"b": {"c": {"10": "abc", "11": "def"}}}'); $aa = (array)$a->b->c; var_dump($aa['10']);

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.4.20.0130.00717.59
8.4.10.0100.00019.32
8.3.150.0150.00317.11
8.3.140.0110.00719.14
8.3.130.0070.00318.55
8.3.120.0030.01720.60
8.3.110.0050.00316.39
8.3.100.0140.00724.06
8.3.90.0050.00326.77
8.3.80.0030.00616.50
8.3.70.0040.01416.58
8.3.60.0120.00618.30
8.3.50.0120.00516.57
8.3.40.0110.00418.48
8.3.30.0170.00318.67
8.3.20.0110.00721.54
8.3.10.0050.00321.66
8.3.00.0090.00917.85
8.2.270.0140.00417.13
8.2.260.0030.00618.42
8.2.250.0040.01118.79
8.2.240.0080.00018.90
8.2.230.0060.01020.94
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0120.00016.63
8.2.190.0080.00816.63
8.2.180.0110.00418.31
8.2.170.0070.00722.96
8.2.160.0150.00620.94
8.2.150.0060.01224.18
8.2.140.0070.00724.66
8.2.130.0050.00226.16
8.2.120.0070.00021.12
8.2.110.0130.00420.33
8.2.100.0110.00017.91
8.2.90.0000.00817.84
8.2.80.0030.00517.97
8.2.70.0050.00317.50
8.2.60.0040.00418.04
8.2.50.0030.00517.68
8.2.40.0040.00418.35
8.2.30.0040.00418.17
8.2.20.0040.00418.18
8.2.10.0040.00418.02
8.2.00.0040.00418.17
8.1.310.0040.00416.66
8.1.300.0170.00320.36
8.1.290.0080.00330.84
8.1.280.0070.00725.92
8.1.270.0000.00823.82
8.1.260.0070.01326.35
8.1.250.0040.00428.09
8.1.240.0060.00622.66
8.1.230.0070.00420.89
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00717.35
8.1.190.0000.00917.22
8.1.180.0050.00318.10
8.1.170.0000.00818.47
8.1.160.0000.00718.87
8.1.150.0000.00720.01
8.1.140.0080.00019.51
8.1.130.0000.00718.81
8.1.120.0000.00717.41
8.1.110.0000.00717.30
8.1.100.0000.00817.52
8.1.90.0000.00817.36
8.1.80.0040.00417.48
8.1.70.0000.00717.30
8.1.60.0040.00417.57
8.1.50.0000.00817.57
8.1.40.0040.00417.53
8.1.30.0000.00717.57
8.1.20.0080.00017.56
8.1.10.0000.00817.47
8.1.00.0000.00717.48
8.0.300.0040.00419.86
8.0.290.0080.00016.63
8.0.280.0030.00318.43
8.0.270.0000.00816.76
8.0.260.0000.00716.75
8.0.250.0000.00816.88
8.0.240.0000.00816.79
8.0.230.0040.00416.78
8.0.220.0030.00316.71
8.0.210.0000.00716.79
8.0.200.0040.00416.93
8.0.190.0030.00616.93
8.0.180.0040.00416.74
8.0.170.0030.00316.84
8.0.160.0070.00016.79
8.0.150.0040.00416.64
8.0.140.0030.00316.84
8.0.130.0050.00013.34
8.0.120.0070.00016.83
8.0.110.0040.00416.89
8.0.100.0030.00516.89
8.0.90.0040.00416.72
8.0.80.0080.00816.89
8.0.70.0070.00016.93
8.0.60.0040.00416.65
8.0.50.0070.00016.78
8.0.30.0070.00917.16
8.0.20.0090.01017.40
8.0.10.0040.00416.89
8.0.00.0060.01216.53
7.4.330.0060.00015.55
7.4.320.0040.00416.50
7.4.300.0030.00316.41
7.4.290.0100.00016.47
7.4.280.0000.00816.64
7.4.270.0030.00316.57
7.4.260.0000.00613.30
7.4.250.0080.00016.47
7.4.240.0050.00216.60
7.4.230.0000.00716.34
7.4.220.0110.00716.46
7.4.210.0090.01016.45
7.4.200.0070.00016.32
7.4.160.0070.01016.46
7.4.150.0060.02017.40
7.4.140.0080.01317.86
7.4.130.0120.00916.61
7.4.120.0120.00916.48
7.4.110.0100.01816.53
7.4.100.0060.01216.37
7.4.90.0070.01016.52
7.4.80.0060.01119.39
7.4.70.0060.00916.46
7.4.60.0110.00816.52
7.4.50.0070.00716.34
7.4.40.0140.00616.52
7.4.30.0030.02016.48
7.4.00.0070.00714.88
7.3.330.0030.00313.13
7.3.320.0030.00312.95
7.3.310.0040.00416.23
7.3.300.0070.00016.30
7.3.290.0080.01216.15
7.3.280.0090.00516.21
7.3.270.0100.00717.40
7.3.260.0110.00716.32
7.3.250.0100.01216.28
7.3.240.0080.01216.49
7.3.230.0080.00816.29
7.3.210.0060.00916.61
7.3.200.0080.00816.39
7.3.190.0160.00016.32
7.3.180.0060.00916.51
7.3.170.0070.01016.50
7.3.160.0090.01216.36
7.3.10.0110.00916.18
7.3.00.0200.00716.43
7.2.330.0100.00716.71
7.2.320.0080.00916.47
7.2.310.0090.00916.33
7.2.300.0070.01116.39
7.2.290.0080.01116.47
7.2.130.0080.00816.27
7.2.120.0140.00816.52
7.2.110.0110.00716.33
7.2.100.0060.01216.00
7.2.90.0130.00316.18
7.2.80.0070.01016.82
7.2.70.0100.00716.33
7.2.60.0080.00816.58
7.2.50.0130.01016.53
7.2.40.0100.01016.41
7.2.30.0060.00916.55
7.2.20.0100.00716.55
7.2.10.0280.00616.39
7.2.00.0080.01118.04
7.1.250.0100.00715.41
7.1.200.0030.00715.60
7.1.70.0040.00417.13
7.1.60.0030.00717.16
7.1.50.0000.01216.99
7.1.40.0040.00816.61
7.1.30.0060.00916.68
7.1.20.0100.01016.41
7.1.10.0000.01016.55
7.1.00.0000.00816.66
7.0.200.0050.00316.59
7.0.190.0000.00716.73
7.0.180.0000.01416.27
7.0.170.0070.00316.14
7.0.160.0030.00616.28
7.0.150.0030.01316.46
7.0.140.0040.00416.06
7.0.130.0030.00716.52
7.0.120.0000.00716.34
7.0.110.0040.00416.33
7.0.100.0050.00216.27
7.0.90.0000.00816.50
7.0.80.0000.01016.38
7.0.70.0040.01516.42
7.0.60.0040.00415.92
7.0.50.0030.00516.50
7.0.40.0000.01014.79
7.0.30.0000.00714.79
7.0.20.0100.00314.79
7.0.10.0040.00414.79
7.0.00.0040.00414.79

preferences:
66.98 ms | 403 KiB | 5 Q