3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{"sections":[{"author_id": 276523011}]}'; $json = json_decode($str); print_r($json); echo $json["sections"][0]["author_id"];

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.0140.00318.43
8.3.50.0100.00622.04
8.3.40.0110.00318.97
8.3.30.0110.00319.17
8.3.20.0080.00020.17
8.3.10.0000.00823.71
8.3.00.0070.00317.38
8.2.180.0040.01118.25
8.2.170.0110.00322.96
8.2.160.0060.00920.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00022.08
8.2.110.0000.00922.12
8.2.100.0060.01017.70
8.2.90.0050.00317.84
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0090.00317.30
8.2.50.0030.00518.07
8.2.40.0050.00319.78
8.2.30.0040.00417.93
8.2.20.0080.00017.77
8.2.10.0040.00417.96
8.2.00.0050.00317.64
8.1.280.0070.00725.92
8.1.270.0000.00822.14
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0000.00922.34
8.1.230.0080.00420.91
8.1.220.0050.00217.74
8.1.210.0000.00818.77
8.1.200.0000.00917.25
8.1.190.0090.00017.23
8.1.180.0030.00618.10
8.1.170.0080.00018.58
8.1.160.0040.00421.89
8.1.150.0060.00318.67
8.1.140.0040.00417.41
8.1.130.0000.00717.69
8.1.120.0000.00717.38
8.1.110.0030.00317.39
8.1.100.0040.00417.38
8.1.90.0000.00717.41
8.1.80.0040.00417.39
8.1.70.0000.00717.36
8.1.60.0060.00617.42
8.1.50.0000.00817.51
8.1.40.0030.00617.53
8.1.30.0040.00417.55
8.1.20.0000.00817.54
8.1.10.0070.00017.55
8.1.00.0040.00417.51
8.0.300.0040.00419.98
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0030.00317.10
8.0.260.0040.00417.06
8.0.250.0050.00317.00
8.0.240.0080.00016.84
8.0.230.0000.00816.82
8.0.220.0030.00316.89
8.0.210.0030.00416.88
8.0.200.0040.00416.94
8.0.190.0080.00016.85
8.0.180.0050.00316.89
8.0.170.0000.00816.97
8.0.160.0040.00416.82
8.0.150.0070.00016.79
8.0.140.0000.00716.77
8.0.130.0000.00513.35
8.0.120.0080.00016.88
8.0.110.0000.00716.71
8.0.100.0030.00616.86
8.0.90.0000.00716.72
8.0.80.0070.00716.77
8.0.70.0050.00216.76
8.0.60.0040.00416.86
8.0.50.0040.00416.94
8.0.30.0150.00417.05
8.0.20.0130.00617.40
8.0.10.0000.00716.87
8.0.00.0060.01216.95
7.4.330.0060.00015.00
7.4.320.0070.00016.54
7.4.300.0060.00016.42
7.4.290.0050.00216.51
7.4.280.0030.00616.60
7.4.270.0000.00716.45
7.4.260.0030.00316.62
7.4.250.0040.00416.49
7.4.240.0000.00716.52
7.4.230.0000.00716.25
7.4.220.0120.00616.36
7.4.210.0060.01016.54
7.4.200.0030.00516.71
7.4.190.0000.00716.57
7.4.160.0080.00816.41
7.4.150.0070.01017.40
7.4.140.0120.00617.86
7.4.130.0100.00616.41
7.4.120.0080.00916.54
7.4.110.0120.00516.58
7.4.100.0130.00316.55
7.4.90.0060.01116.46
7.4.80.0180.00319.39
7.4.70.0070.01016.66
7.4.60.0100.01016.35
7.4.50.0040.00416.29
7.4.40.0100.00716.63
7.4.30.0040.01216.46
7.4.00.0030.01214.86
7.3.330.0000.00513.19
7.3.320.0000.00513.15
7.3.310.0020.00516.25
7.3.300.0000.00716.29
7.3.290.0000.01416.25
7.3.280.0110.00716.27
7.3.270.0090.01517.40
7.3.260.0130.00316.25
7.3.250.0080.01216.51
7.3.240.0100.00616.29
7.3.230.0060.01016.48
7.3.210.0060.01216.22
7.3.200.0120.01019.39
7.3.190.0130.00916.51
7.3.180.0090.00616.20
7.3.170.0070.01116.32
7.3.160.0030.02016.30
7.3.120.0080.00814.68
7.2.330.0130.00316.47
7.2.320.0110.00716.30
7.2.310.0120.00416.59
7.2.300.0000.01816.34
7.2.290.0090.01416.67
7.2.60.0040.01116.98
7.2.00.0000.01519.23
7.1.200.0000.00715.88
7.1.100.0060.00618.11
7.1.70.0090.00617.22
7.1.60.0070.01819.46
7.1.50.0040.01616.91
7.1.00.0000.07722.48
7.0.200.0030.00716.79
7.0.140.0070.07022.18
7.0.60.0070.05320.02
7.0.50.0100.08017.87
7.0.40.0130.08020.29
7.0.30.0270.08020.35
7.0.20.0300.05320.24
7.0.10.0100.08720.10
7.0.00.0070.06020.18
5.6.280.0070.07021.14
5.6.210.0100.07720.66
5.6.200.0100.05018.18
5.6.190.0100.08720.55
5.6.180.0500.07020.51
5.6.170.0370.07320.50
5.6.160.0070.08720.54
5.6.150.0000.04318.23
5.6.140.0030.07718.18
5.6.130.0000.05018.13
5.6.120.0000.07320.98
5.6.110.0100.08021.13
5.6.100.0030.04021.10
5.6.90.0130.05321.09
5.6.80.0170.08720.43
5.5.350.3500.03320.42
5.5.340.0030.04718.08
5.5.330.0070.08020.35
5.5.320.0270.03720.25
5.5.310.0270.03020.50
5.5.300.0100.06718.02
5.5.290.0130.07317.93
5.5.280.0100.08320.76
5.5.270.0170.05320.87
5.5.260.0100.08720.77
5.5.250.0030.04020.77
5.5.240.0000.07320.18
5.4.450.0070.06019.45
5.4.440.0130.05319.55
5.4.430.0070.05719.47
5.4.420.0230.05719.60
5.4.410.0200.04719.21
5.4.400.0170.04719.15
5.4.390.0200.05019.03
5.4.380.0100.06018.50
5.4.370.0200.05018.55
5.4.360.0070.05718.62
5.4.350.0230.04718.56
5.4.340.0100.06018.82
5.4.320.0090.03812.49
5.4.310.0060.04712.48
5.4.300.0060.04612.49
5.4.290.0110.05612.47
5.4.280.0130.08712.37
5.4.270.0070.05512.37
5.4.260.0070.05912.37
5.4.250.0060.04512.37
5.4.240.0090.05512.37
5.4.230.0070.04012.36
5.4.220.0080.03712.36
5.4.210.0050.03912.36
5.4.200.0040.04412.36
5.4.190.0130.06512.36
5.4.180.0170.07412.36
5.4.170.0180.05812.37
5.4.160.0100.05212.37
5.4.150.0220.07812.36
5.4.140.0270.12712.05
5.4.130.0130.05412.04
5.4.120.0070.06011.99
5.4.110.0120.06611.98
5.4.100.0070.07111.99
5.4.90.0100.06211.99
5.4.80.0070.06011.99
5.4.70.0090.05611.98
5.4.60.0190.05611.98
5.4.50.0060.04211.98
5.4.40.0090.05311.97
5.4.30.0090.05111.97
5.4.20.0070.04811.97
5.4.10.0080.04811.97
5.4.00.0150.07211.46
5.3.290.0050.03912.80
5.3.280.0180.07312.71
5.3.270.0260.10812.73
5.3.260.0160.07012.72
5.3.250.0120.07712.72
5.3.240.0100.05612.72
5.3.230.0100.06412.71
5.3.220.0100.06812.68
5.3.210.0100.05112.68
5.3.200.0130.06412.68
5.3.190.0120.04912.68
5.3.180.0080.06912.68
5.3.170.0190.08012.67
5.3.160.0210.09812.67
5.3.150.0110.07212.68
5.3.140.0240.09812.66
5.3.130.0110.07412.66
5.3.120.0060.05712.66
5.3.110.0120.07112.66
5.3.100.0160.04612.11
5.3.90.0070.04212.09
5.3.80.0120.04412.08
5.3.70.0100.04912.09
5.3.60.0110.04912.07
5.3.50.0050.06112.02
5.3.40.0110.05112.02
5.3.30.0110.06411.98
5.3.20.0060.07611.76
5.3.10.0240.11211.72
5.3.00.0300.12011.71
5.2.170.0050.0499.21
5.2.160.0150.0789.20
5.2.150.0100.0609.21
5.2.140.0070.0429.20
5.2.130.0040.0359.16
5.2.120.0120.0419.17
5.2.110.0100.0499.17
5.2.100.0050.0439.17
5.2.90.0050.0319.17
5.2.80.0080.0409.16
5.2.70.0030.0359.17
5.2.60.0060.0339.12
5.2.50.0030.0359.09
5.2.40.0070.0319.06
5.2.30.0040.0329.04
5.2.20.0060.0369.03
5.2.10.0070.0388.94
5.2.00.0090.0318.80
5.1.60.0090.0388.07
5.1.50.0050.0288.06
5.1.40.0060.0248.04
5.1.30.0030.0288.39
5.1.20.0060.0268.41
5.1.10.0050.0318.14
5.1.00.0060.0268.14
5.0.50.0040.0296.62
5.0.40.0020.0226.48
5.0.30.0050.0306.29
5.0.20.0030.0216.26
5.0.10.0020.0216.24
5.0.00.0050.0326.23
4.4.90.0060.0134.78
4.4.80.0020.0164.75
4.4.70.0040.0154.75
4.4.60.0030.0164.75
4.4.50.0010.0184.77
4.4.40.0020.0254.71
4.4.30.0020.0164.75
4.4.20.0020.0184.84
4.4.10.0050.0144.85
4.4.00.0040.0324.76
4.3.110.0030.0244.67
4.3.100.0020.0234.66
4.3.90.0040.0144.63
4.3.80.0030.0254.59
4.3.70.0030.0154.63
4.3.60.0020.0164.63
4.3.50.0040.0144.63
4.3.40.0020.0254.54
4.3.30.0020.0193.27
4.3.20.0030.0213.25
4.3.10.0000.0243.22
4.3.00.0000.0237.22

preferences:
41.32 ms | 401 KiB | 5 Q