3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"foo":{"bar":"baz"}}'; $r1 = json_decode($json); var_dump($r1->foo->bar); $r2 = json_decode($json, true); var_dump($r2['foo']['bar']);

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.80.0060.00317.97
8.3.70.0130.00616.50
8.3.60.0070.00716.63
8.3.50.0120.00721.08
8.3.40.0140.00318.71
8.3.30.0100.01019.09
8.3.20.0070.01120.04
8.3.10.0050.00323.48
8.3.00.0070.00717.59
8.2.200.0090.00018.41
8.2.190.0040.01116.63
8.2.180.0090.00618.18
8.2.170.0110.00418.78
8.2.160.0080.00622.96
8.2.150.0020.00524.18
8.2.140.0000.01424.66
8.2.130.0040.00426.16
8.2.120.0030.00619.48
8.2.110.0090.00019.13
8.2.100.0080.00417.78
8.2.90.0000.00819.19
8.2.80.0000.00817.97
8.2.70.0060.00317.90
8.2.60.0050.00317.80
8.2.50.0030.00518.10
8.2.40.0060.00320.45
8.2.30.0000.00918.12
8.2.20.0000.00817.79
8.2.10.0020.00518.07
8.2.00.0030.00318.29
8.1.290.0090.00330.84
8.1.280.0090.00625.92
8.1.270.0000.01420.33
8.1.260.0080.00026.35
8.1.250.0020.00528.09
8.1.240.0030.00619.38
8.1.230.0070.00417.89
8.1.220.0090.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.13
8.1.190.0050.00317.22
8.1.180.0000.00918.10
8.1.170.0040.00418.53
8.1.160.0040.00422.14
8.1.150.0040.00418.70
8.1.140.0040.00417.38
8.1.130.0040.00417.86
8.1.120.0030.00517.32
8.1.110.0000.00817.31
8.1.100.0040.00417.35
8.1.90.0050.00317.35
8.1.80.0030.00417.46
8.1.70.0000.00717.29
8.1.60.0000.00817.48
8.1.50.0000.00817.50
8.1.40.0040.00417.35
8.1.30.0060.00317.49
8.1.20.0040.00417.59
8.1.10.0070.00017.45
8.1.00.0060.00317.49
8.0.300.0090.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0000.00717.21
8.0.260.0030.00317.19
8.0.250.0070.00016.73
8.0.240.0050.00316.82
8.0.230.0000.00916.89
8.0.220.0070.00016.77
8.0.210.0000.00816.78
8.0.200.0060.00016.97
8.0.190.0040.00416.86
8.0.180.0000.00716.75
8.0.170.0000.00816.77
8.0.160.0030.00316.73
8.0.150.0030.00316.89
8.0.140.0000.00716.78
8.0.130.0000.00913.26
8.0.120.0040.00416.79
8.0.110.0040.00416.84
8.0.100.0000.00816.82
8.0.90.0050.00316.71
8.0.80.0040.01916.82
8.0.70.0030.00516.87
8.0.60.0000.00716.87
8.0.50.0050.00216.88
8.0.30.0110.01417.09
8.0.20.0050.01417.40
8.0.10.0040.00416.95
8.0.00.0150.00516.71
7.4.330.0020.00215.03
7.4.320.0030.00316.51
7.4.300.0000.01116.53
7.4.290.0030.00516.50
7.4.280.0040.00716.39
7.4.270.0000.00716.45
7.4.260.0000.00716.48
7.4.250.0050.00316.49
7.4.240.0040.00316.47
7.4.230.0000.00716.50
7.4.220.0130.00616.37
7.4.210.0040.01116.54
7.4.200.0000.00716.66
7.4.160.0100.00616.36
7.4.150.0140.00417.40
7.4.140.0080.01317.86
7.4.130.0130.01016.50
7.4.120.0090.01116.54
7.4.110.0030.01316.41
7.4.100.0160.00316.43
7.4.90.0070.01116.50
7.4.80.0110.01119.39
7.4.70.0110.00616.39
7.4.60.0060.01016.55
7.4.50.0040.00416.39
7.4.40.0060.01116.62
7.4.30.0120.00616.47
7.4.00.0040.01215.04
7.3.330.0000.00613.09
7.3.320.0030.00313.04
7.3.310.0070.00016.24
7.3.300.0030.00316.25
7.3.290.0090.00716.22
7.3.280.0150.00516.29
7.3.270.0090.00917.40
7.3.260.0100.00716.41
7.3.250.0120.00816.37
7.3.240.0100.00616.52
7.3.230.0170.00616.39
7.3.210.0100.00716.45
7.3.200.0070.01319.39
7.3.190.0130.00316.27
7.3.180.0100.00716.44
7.3.170.0120.00616.36
7.3.160.0060.01016.39
7.2.330.0000.01816.43
7.2.320.0110.00516.72
7.2.310.0100.00616.75
7.2.300.0150.00316.72
7.2.290.0070.01816.42
7.2.00.0030.00619.43
7.1.100.0000.01118.15
7.1.70.0000.00816.95
7.1.60.0070.00719.50
7.1.50.0110.01516.89
7.1.00.0070.07322.54
7.0.200.0040.00416.52
7.0.60.0070.08719.93
7.0.50.0070.04017.66
7.0.40.0100.03719.91
7.0.30.0200.06020.13
7.0.20.0270.07020.18
7.0.10.0100.08320.16
7.0.00.0070.08320.09
5.6.210.0070.03720.68
5.6.200.0100.04318.08
5.6.190.0000.05720.43
5.6.180.0400.06320.78
5.6.170.0200.03720.45
5.6.160.0130.08020.54
5.6.150.0100.07318.15
5.6.140.0070.08018.18
5.6.130.0070.08018.15
5.6.120.0100.07720.99
5.6.110.0130.07721.01
5.6.100.0100.06720.98
5.6.90.0000.04320.98
5.6.80.0070.08320.38
5.6.70.4430.03720.52
5.5.350.0130.08320.31
5.5.340.0070.08017.92
5.5.330.0000.08720.29
5.5.320.0170.08320.17
5.5.310.0300.04720.21
5.5.300.0100.07317.98
5.5.290.0030.04317.95
5.5.280.0100.08320.79
5.5.270.0130.05320.86
5.5.260.0200.07020.84
5.5.250.0030.04020.66
5.5.240.0230.07320.18
5.4.450.0130.03319.26
5.4.440.0100.04719.14
5.4.430.0030.04719.45
5.4.420.0070.06319.46
5.4.410.0100.05318.80
5.4.400.0030.05718.80
5.4.390.0100.05718.70
5.4.380.0130.05018.72
5.4.370.0070.05718.52
5.4.360.0130.05018.69
5.4.350.0030.06718.78
5.4.340.0170.04718.50
5.4.320.0100.05318.73
5.4.310.0200.05018.68
5.4.300.0070.07718.62
5.4.290.0170.04318.63
5.4.280.0070.05718.50
5.4.270.0170.05018.64
5.4.260.0170.04718.70
5.4.250.0130.05318.70
5.4.240.0100.05718.45
5.4.230.0070.05718.63
5.4.220.0130.05318.47
5.4.210.0030.06018.68
5.4.200.0030.06016.43
5.4.190.0030.06018.67
5.4.180.0230.05718.68
5.4.170.0200.04718.70
5.4.160.0100.05318.53
5.4.150.0130.05018.67
5.4.140.0030.05716.23
5.4.130.0130.04716.20
5.4.120.0170.05016.32
5.4.110.0070.05016.34
5.4.100.0100.05016.06
5.4.90.0100.06016.08
5.4.80.0130.04716.31
5.4.70.0030.05716.29
5.4.60.0070.05316.23
5.4.50.0130.05016.19
5.4.40.0030.05716.02
5.4.30.0100.05316.21
5.4.20.0200.06016.02
5.4.10.0100.05316.18
5.4.00.0130.04315.71
5.3.290.0070.05714.70
5.3.280.0130.04714.57
5.3.270.0100.08314.59
5.3.260.0100.06014.54
5.3.250.0070.05714.60
5.3.240.0130.05014.57
5.3.230.0130.05014.54
5.3.220.0200.04314.60
5.3.210.0130.05314.46
5.3.200.0070.06314.57
5.3.190.0070.05714.66
5.3.180.0130.04714.66
5.3.170.0170.04714.48
5.3.160.0070.05314.66
5.3.150.0070.05714.66
5.3.140.0100.05314.64
5.3.130.0130.05014.61
5.3.120.0030.06014.52
5.3.110.0070.05714.54
5.3.100.0130.06313.92
5.3.90.0130.05314.01
5.3.80.0230.05313.91
5.3.70.0230.05714.01
5.3.60.0170.04713.99
5.3.50.0200.05013.91
5.3.40.0100.06713.93
5.3.30.0070.07014.00
5.3.20.0070.06313.59
5.3.10.0200.03713.75
5.3.00.0030.06713.68
5.2.170.0030.05711.20
5.2.160.0130.03711.10
5.2.150.0070.04311.20
5.2.140.0130.04011.10
5.2.130.0070.04011.15
5.2.120.0070.04011.23
5.2.110.0070.04011.15
5.2.100.0100.03711.08
5.2.90.0070.04011.08
5.2.80.0070.04711.13
5.2.70.0030.04311.13
5.2.60.0070.04011.03
5.2.50.0030.04311.07
5.2.40.0000.04710.93
5.2.30.0030.04311.00
5.2.20.0030.04310.99
5.2.10.0070.04011.01
5.2.00.0030.04310.75
5.1.60.0130.03010.11
5.1.50.0070.03710.06
5.1.40.0030.03710.11
5.1.30.0100.03310.33
5.1.20.0000.04310.39
5.1.10.0000.04710.08
5.1.00.0070.03710.08
5.0.50.0070.0278.54
5.0.40.0100.0208.46
5.0.30.0100.0408.23
5.0.20.0030.0278.19
5.0.10.0070.0308.19
5.0.00.0000.0478.27
4.4.90.0000.0275.90
4.4.80.0000.0235.82
4.4.70.0000.0305.90
4.4.60.0000.0275.91
4.4.50.0070.0205.88
4.4.40.0070.0305.88
4.4.30.0030.0205.89
4.4.20.0070.0205.93
4.4.10.0000.0275.95
4.4.00.0000.0405.97
4.3.110.0030.0235.79
4.3.100.0070.0205.79
4.3.90.0130.0135.81
4.3.80.0070.0335.86
4.3.70.0030.0205.79
4.3.60.0000.0275.79
4.3.50.0070.0205.87
4.3.40.0000.0375.73
4.3.30.0100.0174.55
4.3.20.0070.0234.55
4.3.10.0030.0204.48
4.3.00.0070.02015.81

preferences:
32.58 ms | 401 KiB | 5 Q