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); $n = 3; var_dump($a->$n->friend);

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.0170.00318.29
8.3.50.0120.00321.21
8.3.40.0110.00718.71
8.3.30.0110.00418.68
8.3.20.0040.00418.52
8.3.10.0080.00020.23
8.3.00.0040.00419.13
8.2.180.0140.00416.75
8.2.170.0140.00722.96
8.2.160.0060.01018.54
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00519.83
8.2.110.0150.00421.04
8.2.100.0060.00617.72
8.2.90.0030.00519.27
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0000.00917.80
8.2.50.0060.00318.07
8.2.40.0000.00718.34
8.2.30.0070.00019.85
8.2.20.0000.00717.73
8.2.10.0040.00417.64
8.2.00.0050.00317.65
8.1.280.0080.00625.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0030.00622.42
8.1.230.0090.00320.88
8.1.220.0000.00818.77
8.1.210.0030.00618.84
8.1.200.0030.00617.36
8.1.190.0070.00017.53
8.1.180.0080.00018.10
8.1.170.0040.00418.84
8.1.160.0000.00718.81
8.1.150.0030.00518.69
8.1.140.0070.00017.44
8.1.130.0000.00717.68
8.1.120.0040.00417.54
8.1.110.0070.00017.36
8.1.100.0040.00417.42
8.1.90.0040.00417.48
8.1.80.0000.00717.45
8.1.70.0000.00717.34
8.1.60.0000.00717.54
8.1.50.0050.00317.54
8.1.40.0000.00817.41
8.1.30.0040.00417.53
8.1.20.0030.00617.69
8.1.10.0000.00717.41
8.1.00.0030.00517.51
8.0.300.0060.00320.06
8.0.290.0040.00416.75
8.0.280.0060.00018.54
8.0.270.0070.00017.25
8.0.260.0000.00818.53
8.0.250.0000.00716.96
8.0.240.0000.00916.91
8.0.230.0070.00016.88
8.0.220.0030.00416.85
8.0.210.0070.00016.89
8.0.200.0050.00316.91
8.0.190.0070.00016.92
8.0.180.0000.01016.89
8.0.170.0030.00616.86
8.0.160.0000.00716.95
8.0.150.0030.00616.80
8.0.140.0050.01016.88
8.0.130.0000.00613.30
8.0.120.0070.00016.89
8.0.110.0050.00216.81
8.0.100.0040.00416.79
8.0.90.0030.00416.93
8.0.80.0120.00316.88
8.0.70.0040.00416.83
8.0.60.0000.00716.68
8.0.50.0000.00716.77
8.0.30.0090.01117.18
8.0.20.0150.00717.40
8.0.10.0040.00417.12
8.0.00.0110.00816.70
7.4.330.0000.00514.69
7.4.320.0000.00716.54
7.4.300.0030.00316.50
7.4.290.0030.00316.42
7.4.280.0040.00416.48
7.4.270.0070.00016.60
7.4.260.0000.00613.29
7.4.250.0060.00316.58
7.4.240.0040.00416.59
7.4.230.0070.00016.70
7.4.220.0160.00316.60
7.4.210.0050.00916.47
7.4.200.0030.00316.49
7.4.190.0000.00716.63
7.4.160.0080.00816.50
7.4.150.0190.00017.40
7.4.140.0030.01617.20
7.4.130.0080.00816.49
7.4.120.0110.00716.51
7.4.110.0140.00316.38
7.4.100.0100.00716.37
7.4.90.0140.00516.36
7.4.80.0170.01519.03
7.4.70.0090.00916.47
7.4.60.0030.01316.36
7.4.50.0040.00416.41
7.4.40.0040.01222.27
7.4.30.0080.00816.63
7.4.00.0090.00615.11
7.3.330.0020.00313.24
7.3.320.0050.00013.03
7.3.310.0030.00316.20
7.3.300.0000.00716.29
7.3.290.0030.01716.21
7.3.280.0090.00716.28
7.3.270.0170.00317.40
7.3.260.0110.00518.24
7.3.250.0120.00616.24
7.3.240.0100.00616.45
7.3.230.0070.01116.41
7.3.210.0100.00716.21
7.3.200.0190.00319.39
7.3.190.0120.00916.38
7.3.180.0190.00416.17
7.3.170.0070.01416.41
7.3.160.0120.00616.20
7.3.120.0080.00814.81
7.3.110.0070.01114.85
7.3.100.0070.00914.79
7.3.90.0040.00914.81
7.3.80.0050.00614.98
7.3.70.0040.00914.72
7.3.60.0050.00914.67
7.3.50.0090.00614.80
7.3.40.0060.00814.71
7.3.30.0070.00714.96
7.3.20.0030.01016.60
7.3.10.0040.01016.69
7.3.00.0060.01016.70
7.2.330.0120.00816.28
7.2.320.0090.00916.63
7.2.310.0120.00616.67
7.2.300.0090.00916.75
7.2.290.0090.00916.38
7.2.240.0080.00815.00
7.2.230.0050.00915.02
7.2.220.0050.01215.13
7.2.210.0050.01014.82
7.2.200.0020.01314.82
7.2.190.0050.00915.07
7.2.180.0080.00714.81
7.2.170.0070.01014.96
7.2.160.0080.00814.92
7.2.150.0120.00316.80
7.2.140.0080.00816.92
7.2.130.0050.01216.89
7.2.120.0070.00916.88
7.2.110.0060.00916.91
7.2.100.0090.00716.95
7.2.90.0070.00916.92
7.2.80.0090.00716.65
7.2.70.0060.00716.87
7.2.60.0060.00816.82
7.2.50.0070.00816.86
7.2.40.0080.00816.98
7.2.30.0040.01316.95
7.2.20.0070.00616.87
7.2.10.0060.00716.88
7.2.00.0040.00817.49
7.1.330.0060.00815.84
7.1.320.0000.01115.50
7.1.310.0050.01015.72
7.1.300.0060.00715.80
7.1.290.0050.00915.83
7.1.280.0070.00615.78
7.1.270.0030.01015.69
7.1.260.0050.01015.88
7.1.250.0100.00415.77
7.1.200.0000.00815.89
7.1.100.0000.01018.01
7.1.70.0000.00817.03
7.1.60.0110.01419.40
7.1.50.0070.01416.91
7.1.00.0000.07722.57
7.0.200.0040.00416.74
7.0.140.0000.07722.11
7.0.60.0070.04319.90
7.0.50.0100.04017.83
7.0.40.0170.07720.06
7.0.30.0300.03720.20
7.0.20.0300.08020.19
7.0.10.0300.05020.13
7.0.00.0070.08720.29
5.6.280.0030.07320.89
5.6.210.0070.08020.63
5.6.200.0130.06318.17
5.6.190.0100.07320.32
5.6.180.0300.09320.41
5.6.170.0330.07020.49
5.6.160.0030.04320.51
5.6.150.0030.04318.18
5.6.140.0030.04018.18
5.6.130.0000.06718.11
5.6.120.0100.08020.98
5.6.110.0030.04720.97
5.6.100.0030.07721.13
5.6.90.0070.08021.13
5.6.80.0230.06720.39
5.6.70.4370.03320.52
5.5.350.3900.04320.52
5.5.340.0000.05718.02
5.5.330.0030.04720.36
5.5.320.0170.07020.38
5.5.310.0230.08320.18
5.5.300.0070.08317.95
5.5.290.0130.07318.02
5.5.280.0070.08320.89
5.5.270.0030.04020.95
5.5.260.0170.08020.75
5.5.250.0030.08020.46
5.5.240.0070.06720.18
5.4.450.3000.03719.20
5.4.440.3300.03319.54
5.4.430.2570.04019.22
5.4.420.3800.03719.24
5.4.410.3600.04719.43
5.4.400.3400.04319.09
5.4.390.3400.03318.88
5.4.380.3600.03319.10
5.4.370.3430.03718.92
5.4.360.3330.03719.12
5.4.350.3030.04718.90
5.4.340.3100.04018.79
5.4.320.3670.05019.08
5.4.310.3370.04319.18
5.4.300.3170.03719.09
5.4.290.3430.04019.09
5.4.280.2900.04319.10
5.4.270.3470.04019.23
5.4.260.3400.03019.13
5.4.250.3430.03718.91
5.4.240.3400.04018.93
5.4.230.3370.03318.91
5.4.220.3500.04319.12
5.4.210.3400.04319.08
5.4.200.3130.04019.07
5.4.190.3330.03718.79
5.4.180.2600.03719.20
5.4.170.3330.03719.07
5.4.160.3600.03719.01
5.4.150.3900.03319.08
5.4.140.3800.04016.28
5.4.130.3500.03716.22
5.4.120.3430.03316.54
5.4.110.3430.03716.47
5.4.100.3600.03716.44
5.4.90.3500.03016.50
5.4.80.3330.03716.22
5.4.70.4030.03316.42
5.4.60.3970.03716.32
5.4.50.2770.03316.40
5.4.40.3430.03716.42
5.4.30.3530.03316.38
5.4.20.2930.03016.38
5.4.10.4130.03316.20
5.4.00.3430.05315.88
5.3.290.3100.03714.62
5.3.280.3730.04314.57
5.3.270.3300.04014.55
5.3.260.3570.04014.46
5.3.250.3830.04014.48
5.3.240.3900.03314.57
5.3.230.3470.04014.46
5.3.220.3170.03314.55
5.3.210.3130.04014.51
5.3.200.3100.01714.42
5.3.190.3270.03314.48
5.3.180.3430.04014.66
5.3.170.4030.04014.59
5.3.160.3770.04014.41
5.3.150.4930.04714.47
5.3.140.3130.03314.41
5.3.130.3530.03714.59
5.3.120.3070.04314.39
5.3.110.3300.04314.59
5.3.100.3130.03313.89
5.3.90.2570.03314.08
5.3.80.3430.04313.86
5.3.70.3100.03314.11
5.3.60.2830.03713.85
5.3.50.3270.03313.72
5.3.40.3130.02713.98
5.3.30.3330.03013.71
5.3.20.3370.03313.57
5.3.10.3430.03313.60
5.3.00.3470.03313.58
5.2.170.3100.03711.24
5.2.160.2770.03711.16
5.2.150.2770.03011.15
5.2.140.2870.03010.97
5.2.130.2570.03011.17
5.2.120.2900.03310.95
5.2.110.2770.02710.93
5.2.100.2670.03311.25
5.2.90.2830.03311.15
5.2.80.3030.03310.96
5.2.70.2770.02011.10
5.2.60.2600.03011.09
5.2.50.2730.02711.05
5.2.40.2300.02010.88
5.2.30.2630.04010.99
5.2.20.2230.02311.04
5.2.10.2670.02010.76
5.2.00.2300.02710.71
5.1.60.2030.03010.04
5.1.50.1830.0309.90
5.1.40.2900.0239.86
5.1.30.2800.02010.40
5.1.20.2630.03010.31
5.1.10.2900.0239.99
5.1.00.2830.0279.96
5.0.50.0900.0208.43
5.0.40.1130.0238.38
5.0.30.1330.0308.13
5.0.20.1070.0208.17
5.0.10.1100.0238.16
5.0.00.1400.0378.16
4.4.90.1300.0207.63
4.4.80.1130.0177.63
4.4.70.1370.0177.63
4.4.60.1170.0237.63
4.4.50.1430.0177.63
4.4.40.1430.0237.63
4.4.30.1270.0207.63
4.4.20.1430.0177.63
4.4.10.1370.0137.63
4.4.00.1430.0307.63
4.3.110.1230.0177.63
4.3.100.1300.0177.63
4.3.90.1400.0207.63
4.3.80.1030.0237.63
4.3.70.1400.0177.63
4.3.60.1430.0177.63
4.3.50.1330.0177.63
4.3.40.1000.0277.63
4.3.30.0500.0177.63
4.3.20.0730.0207.63
4.3.10.0830.0177.63
4.3.00.0800.0277.63

preferences:
66.69 ms | 401 KiB | 5 Q