3v4l.org

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

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.70.0160.00616.58
8.3.60.0040.01116.63
8.3.50.0090.00922.04
8.3.40.0110.00418.58
8.3.30.0030.01019.01
8.3.20.0050.00320.21
8.3.10.0080.00023.64
8.3.00.0060.00617.38
8.2.180.0140.00718.48
8.2.170.0070.01422.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00022.02
8.2.110.0060.00322.25
8.2.100.0120.00017.78
8.2.90.0000.00819.13
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00418.04
8.2.50.0030.00918.07
8.2.40.0040.00419.95
8.2.30.0000.00817.92
8.2.20.0050.00217.57
8.2.10.0040.00418.04
8.2.00.0080.00017.61
8.1.280.0130.01325.92
8.1.270.0040.00423.96
8.1.260.0080.00026.35
8.1.250.0110.00728.09
8.1.240.0030.00623.96
8.1.230.0040.00819.01
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00416.98
8.1.180.0030.00618.10
8.1.170.0050.00318.45
8.1.160.0040.00421.95
8.1.150.0070.00318.62
8.1.140.0000.00717.50
8.1.130.0030.00317.87
8.1.120.0000.00717.43
8.1.110.0050.00217.34
8.1.100.0040.00417.45
8.1.90.0000.00717.35
8.1.80.0070.00017.43
8.1.70.0000.00717.41
8.1.60.0060.00617.58
8.1.50.0000.00917.36
8.1.40.0000.00717.53
8.1.30.0000.00717.52
8.1.20.0040.00417.60
8.1.10.0040.00417.29
8.1.00.0070.00017.37
8.0.300.0080.00020.63
8.0.290.0070.00016.93
8.0.280.0030.00318.35
8.0.270.0050.00217.24
8.0.260.0000.00617.28
8.0.250.0050.00216.95
8.0.240.0000.00816.92
8.0.230.0000.00716.91
8.0.220.0080.00016.79
8.0.210.0030.00416.90
8.0.200.0030.00316.95
8.0.190.0030.00616.91
8.0.180.0000.00716.90
8.0.170.0000.00816.95
8.0.160.0040.00416.76
8.0.150.0000.00816.80
8.0.140.0030.00316.84
8.0.130.0040.00413.31
8.0.120.0060.00216.80
8.0.110.0000.00716.75
8.0.100.0050.00216.97
8.0.90.0030.00316.67
8.0.80.0110.00416.84
8.0.70.0000.00716.92
8.0.60.0050.00216.75
8.0.50.0040.00416.67
8.0.30.0130.00616.87
8.0.20.0120.00617.40
8.0.10.0040.00416.86
8.0.00.0100.01216.72
7.4.330.0020.00215.00
7.4.320.0070.00016.50
7.4.300.0000.00716.39
7.4.290.0040.00416.62
7.4.280.0050.00316.57
7.4.270.0070.00016.59
7.4.260.0000.00816.49
7.4.250.0050.00216.56
7.4.240.0060.00116.55
7.4.230.0070.00016.32
7.4.220.0070.01016.57
7.4.210.0090.00616.45
7.4.200.0000.00716.49
7.4.190.0000.00716.45
7.4.160.0090.00916.42
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0050.01116.35
7.4.120.0080.00916.36
7.4.110.0170.00716.67
7.4.100.0080.00816.39
7.4.90.0130.01316.34
7.4.80.0190.00319.39
7.4.70.0130.00316.36
7.4.60.0040.01116.59
7.4.50.0080.00016.58
7.4.40.0030.01316.43
7.4.30.0060.01216.36
7.4.00.0070.01014.63
7.3.330.0000.00513.13
7.3.320.0030.00313.09
7.3.310.0030.00516.25
7.3.300.0030.00316.25
7.3.290.0100.01016.17
7.3.280.0040.01616.27
7.3.270.0100.01017.40
7.3.260.0000.01616.19
7.3.250.0100.01016.43
7.3.240.0060.01516.27
7.3.230.0170.00016.39
7.3.210.0100.00716.31
7.3.200.0060.01119.39
7.3.190.0060.01316.47
7.3.180.0120.00416.24
7.3.170.0070.01016.27
7.3.160.0060.01016.14
7.3.120.0090.00315.00
7.2.330.0070.01116.45
7.2.320.0140.00316.35
7.2.310.0060.01116.66
7.2.300.0100.00716.55
7.2.290.0110.00616.71
7.2.60.0030.01316.70
7.2.50.0030.01016.90
7.1.200.0040.00815.49
7.1.70.0000.00816.97
7.1.60.0160.00719.46
7.1.50.0030.01716.91
7.1.00.0030.07722.44
7.0.200.0000.00816.69
7.0.140.0000.07322.08
7.0.60.0000.06720.07
7.0.50.0070.04317.87
7.0.40.0130.08320.24
7.0.30.0200.05020.12
7.0.20.0230.04720.24
7.0.10.0000.08720.30
7.0.00.0000.09020.20
5.6.280.0030.09021.12
5.6.210.0000.08720.72
5.6.200.0070.08318.25
5.6.190.0170.05720.57
5.6.180.0270.05020.33
5.6.170.0370.07320.48
5.6.160.0200.06720.50
5.6.150.0000.04718.19
5.6.140.0100.06318.17
5.6.130.0070.05018.18
5.6.120.0070.09020.99
5.6.110.0100.08320.96
5.6.100.0130.06320.97
5.6.90.0100.05320.97
5.6.80.0100.05720.50
5.5.350.3830.04020.30
5.5.340.0070.05317.98
5.5.330.0030.04320.31
5.5.320.0230.04020.41
5.5.310.0230.04020.33
5.5.300.0070.04717.96
5.5.290.0100.07717.95
5.5.280.0100.04320.85
5.5.270.0070.07020.86
5.5.260.0170.08020.84
5.5.250.0070.08020.70
5.5.240.0070.07020.25
5.4.450.0170.05319.55
5.4.440.0130.06019.47
5.4.430.0170.05019.16
5.4.420.0070.06319.61
5.4.410.0300.05319.48
5.4.400.0200.05719.22
5.4.390.0070.06019.14
5.4.380.0200.05318.53
5.4.370.0200.07018.74
5.4.360.0130.05018.80
5.4.350.0100.05718.75
5.4.340.0100.05718.61
5.4.320.0060.03712.49
5.4.310.0060.04012.48
5.4.300.0140.04312.49
5.4.290.0070.03812.47
5.4.280.0080.03712.36
5.4.270.0080.04112.37
5.4.260.0100.04612.37
5.4.250.0110.05312.36
5.4.240.0090.05312.37
5.4.230.0100.06012.36
5.4.220.0120.05312.36
5.4.210.0120.04912.36
5.4.200.0100.05112.36
5.4.190.0110.05112.36
5.4.180.0140.04612.35
5.4.170.0120.04812.37
5.4.160.0090.04912.36
5.4.150.0060.05212.36
5.4.140.0090.04812.04
5.4.130.0080.03412.03
5.4.120.0060.03811.99
5.4.110.0090.03711.98
5.4.100.0080.04311.98
5.4.90.0090.04811.98
5.4.80.0070.05611.98
5.4.70.0090.04011.98
5.4.60.0070.04511.98
5.4.50.0040.04511.98
5.4.40.0140.05411.97
5.4.30.0090.05311.96
5.4.20.0090.05611.96
5.4.10.0100.05311.96
5.4.00.0060.05411.46
5.3.290.0050.04112.80
5.3.280.0080.05212.71
5.3.270.0130.05312.73
5.3.260.0110.05312.72
5.3.250.0080.05512.72
5.3.240.0080.05412.72
5.3.230.0070.05212.71
5.3.220.0070.05512.68
5.3.210.0070.05612.68
5.3.200.0070.05512.68
5.3.190.0060.05412.68
5.3.180.0070.05312.67
5.3.170.0090.05212.67
5.3.160.0060.05512.67
5.3.150.0070.05612.67
5.3.140.0070.05612.66
5.3.130.0090.05612.66
5.3.120.0070.05712.66
5.3.110.0110.05312.66
5.3.100.0060.04612.12
5.3.90.0170.04512.09
5.3.80.0110.05212.08
5.3.70.0070.05212.08
5.3.60.0060.05312.06
5.3.50.0110.04712.02
5.3.40.0090.04912.01
5.3.30.0050.05311.98
5.3.20.0100.04611.75
5.3.10.0100.04811.71
5.3.00.0070.05211.71
5.2.170.0060.0369.21
5.2.160.0070.0309.21
5.2.150.0040.0339.21
5.2.140.0070.0299.20
5.2.130.0060.0299.16
5.2.120.0030.0319.16
5.2.110.0040.0309.17
5.2.100.0050.0319.16
5.2.90.0060.0319.17
5.2.80.0030.0349.16
5.2.70.0110.0289.16
5.2.60.0070.0299.11
5.2.50.0040.0319.09
5.2.40.0030.0319.05
5.2.30.0080.0279.04
5.2.20.0070.0279.02
5.2.10.0080.0278.94
5.2.00.0050.0318.79
5.1.60.0060.0338.06
5.1.50.0040.0268.06
5.1.40.0050.0468.05
5.1.30.0080.0358.39
5.1.20.0090.0508.41
5.1.10.0050.0278.14
5.1.00.0090.0348.14
5.0.50.0060.0536.62
5.0.40.0050.0226.48
5.0.30.0020.0366.29
5.0.20.0030.0216.26
5.0.10.0060.0196.24
5.0.00.0070.0366.23
4.4.90.0020.0194.78
4.4.80.0030.0214.76
4.4.70.0050.0184.75
4.4.60.0040.0154.76
4.4.50.0050.0154.77
4.4.40.0040.0254.71
4.4.30.0040.0164.76
4.4.20.0050.0144.85
4.4.10.0040.0154.85
4.4.00.0010.0274.76
4.3.110.0020.0174.67
4.3.100.0050.0134.66
4.3.90.0010.0164.63
4.3.80.0040.0234.58
4.3.70.0030.0154.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0020.0264.54
4.3.30.0040.0183.28
4.3.20.0020.0183.26
4.3.10.0050.0133.22
4.3.00.0070.0177.23

preferences:
42.54 ms | 401 KiB | 5 Q