3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c='{"ContentBlock1":["2","22"]}'; $cid = json_decode($c); foreach ($cid as $key){ echo $jsoncid = $key; } print_r($jsoncid);

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.0040.01116.63
8.3.50.0160.00721.95
8.3.40.0150.00718.63
8.3.30.0100.00318.92
8.3.20.0050.00220.29
8.3.10.0050.00323.67
8.3.00.0080.00019.51
8.2.180.0000.01518.41
8.2.170.0160.00022.96
8.2.160.0090.00618.79
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0180.00026.16
8.2.120.0040.00422.13
8.2.110.0060.00322.11
8.2.100.0060.00617.84
8.2.90.0060.00319.27
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0040.00418.03
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0040.00417.92
8.2.20.0030.00617.55
8.2.10.0040.00417.98
8.2.00.0030.00717.79
8.1.280.0080.00825.92
8.1.270.0040.00423.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.84
8.1.230.0080.00419.14
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.47
8.1.190.0040.00417.53
8.1.180.0050.00318.10
8.1.170.0000.00818.65
8.1.160.0040.00422.00
8.1.150.0040.00418.68
8.1.140.0070.00017.40
8.1.130.0000.00617.75
8.1.120.0000.00717.36
8.1.110.0070.00017.43
8.1.100.0020.00517.34
8.1.90.0000.00717.34
8.1.80.0000.00617.47
8.1.70.0000.00717.37
8.1.60.0030.00617.47
8.1.50.0080.00017.52
8.1.40.0030.00517.43
8.1.30.0050.00317.49
8.1.20.0000.00817.68
8.1.10.0040.00417.43
8.1.00.0000.00717.42
8.0.300.0000.00718.77
8.0.290.0030.00317.16
8.0.280.0050.00318.45
8.0.270.0070.00017.12
8.0.260.0030.00317.24
8.0.250.0000.00617.05
8.0.240.0080.00017.00
8.0.230.0000.00717.04
8.0.220.0000.00716.95
8.0.210.0050.00316.90
8.0.200.0070.00017.01
8.0.190.0040.00417.00
8.0.180.0070.00016.87
8.0.170.0040.00416.92
8.0.160.0040.00316.93
8.0.150.0030.00516.78
8.0.140.0050.00316.89
8.0.130.0030.00313.33
8.0.120.0040.00416.89
8.0.110.0000.00717.02
8.0.100.0030.00516.93
8.0.90.0040.00417.00
8.0.80.0090.01116.86
8.0.70.0040.00416.75
8.0.60.0000.00716.96
8.0.50.0030.00317.00
8.0.30.0110.00917.26
8.0.20.0090.01017.40
8.0.10.0070.00017.02
8.0.00.0070.01216.78
7.4.330.0030.00315.00
7.4.320.0070.00016.63
7.4.300.0000.00716.48
7.4.290.0000.00816.51
7.4.280.0000.00716.50
7.4.270.0040.00416.40
7.4.260.0050.00216.59
7.4.250.0070.00016.53
7.4.240.0030.00516.51
7.4.230.0030.00316.70
7.4.220.0100.00716.43
7.4.210.0090.00816.63
7.4.200.0050.00216.43
7.4.190.0040.00416.63
7.4.160.0090.00616.62
7.4.150.0180.00017.40
7.4.140.0070.01217.86
7.4.130.0080.00916.40
7.4.120.0080.00816.54
7.4.110.0110.01116.61
7.4.100.0070.01016.58
7.4.90.0030.01316.49
7.4.80.0140.00419.39
7.4.70.0100.00716.75
7.4.60.0130.00816.58
7.4.50.0040.00416.63
7.4.40.0090.00522.77
7.4.30.0090.00616.70
7.4.00.0110.00715.24
7.3.330.0000.00613.36
7.3.320.0030.00313.22
7.3.310.0050.00216.46
7.3.300.0000.00716.38
7.3.290.0160.00916.40
7.3.280.0110.00616.39
7.3.270.0060.01517.40
7.3.260.0100.00616.48
7.3.250.0060.01416.44
7.3.240.0110.00716.57
7.3.230.0170.00316.68
7.3.210.0090.00916.53
7.3.200.0030.01519.39
7.3.190.0130.00916.38
7.3.180.0090.00616.41
7.3.170.0110.00416.38
7.3.160.0000.01616.46
7.3.120.0140.00014.86
7.2.330.0130.00316.71
7.2.320.0120.00616.78
7.2.310.0080.01316.66
7.2.300.0030.01316.77
7.2.290.0100.00616.36
7.1.100.0080.00618.21
7.1.70.0060.00916.88
7.1.60.0070.01819.33
7.1.50.0030.01716.89
7.1.00.0000.08322.28
7.0.200.0030.00616.79
7.0.140.0000.07722.10
7.0.60.0130.07319.91
7.0.50.0030.04017.85
7.0.40.0000.05320.04
7.0.30.0330.06020.08
7.0.20.0200.05720.07
7.0.10.0030.07720.20
7.0.00.0170.06720.32
5.6.280.0100.06721.02
5.6.210.0030.04020.46
5.6.200.0100.05718.18
5.6.190.0170.07020.33
5.6.180.0200.04720.52
5.6.170.0370.07020.47
5.6.160.0000.04720.50
5.6.150.0130.06018.27
5.6.140.0030.08718.28
5.6.130.0070.04718.29
5.6.120.0130.08020.99
5.6.110.0100.08020.98
5.6.100.0070.08320.99
5.6.90.0100.06720.95
5.6.80.0070.04720.36
5.6.70.4270.03320.39
5.5.350.0070.07020.39
5.5.340.0070.05017.99
5.5.330.0070.05020.13
5.5.320.0100.07720.31
5.5.310.0330.07720.52
5.5.300.0030.04017.95
5.5.290.0030.08717.98
5.5.280.0030.04720.88
5.5.270.0200.07320.67
5.5.260.0200.07320.76
5.5.250.0130.07720.56
5.5.240.0270.05720.04
5.4.450.0770.08319.61
5.4.440.0870.06019.46
5.4.430.0130.05319.19
5.4.420.0800.07019.38
5.4.410.0800.04719.45
5.4.400.0670.05319.38
5.4.390.0670.06319.14
5.4.380.0270.05018.46
5.4.370.0300.05318.76
5.4.360.0400.03718.77
5.4.350.0270.05318.69
5.4.340.0200.05318.77
5.4.320.0080.04312.48
5.4.310.0080.03612.48
5.4.300.0060.04112.48
5.4.290.0070.03712.48
5.4.280.0090.03912.35
5.4.270.0150.07612.35
5.4.260.0080.04612.35
5.4.250.0100.04312.35
5.4.240.0170.06912.35
5.4.230.0140.05712.34
5.4.220.0150.04612.34
5.4.210.0120.05912.34
5.4.200.0100.04612.34
5.4.190.0080.05512.34
5.4.180.0170.07412.34
5.4.170.0100.05212.35
5.4.160.0080.04112.34
5.4.150.0070.04212.34
5.4.140.0070.04312.03
5.4.130.0070.03612.01
5.4.120.0080.05211.97
5.4.110.0080.05311.97
5.4.100.0090.05411.97
5.4.90.0100.03811.97
5.4.80.0080.03911.97
5.4.70.0070.03711.96
5.4.60.0120.03311.96
5.4.50.0110.03611.96
5.4.40.0050.03711.95
5.4.30.0090.03811.95
5.4.20.0080.03411.95
5.4.10.0080.05111.95
5.4.00.0050.05311.44
5.3.290.0070.04412.80
5.3.280.0180.05712.71
5.3.270.0120.05612.73
5.3.260.0140.05912.72
5.3.250.0140.04712.72
5.3.240.0100.05012.72
5.3.230.0150.05012.70
5.3.220.0090.05212.68
5.3.210.0130.05312.68
5.3.200.0120.05412.68
5.3.190.0120.05612.68
5.3.180.0130.04912.68
5.3.170.0140.04612.67
5.3.160.0080.04812.67
5.3.150.0070.04012.68
5.3.140.0060.06412.66
5.3.130.0080.05812.66
5.3.120.0070.05412.66
5.3.110.0110.06312.66
5.3.100.0100.05312.12
5.3.90.0080.05212.08
5.3.80.0110.05512.07
5.3.70.0140.05312.08
5.3.60.0110.05812.07
5.3.50.0080.05412.00
5.3.40.0100.05012.00
5.3.30.0080.05311.94
5.3.20.0120.04811.73
5.3.10.0110.04611.69
5.3.00.0120.04411.68
5.2.170.0080.0399.18
5.2.160.0070.0359.18
5.2.150.0110.0649.17
5.2.140.0100.0439.17
5.2.130.0070.0429.13
5.2.120.0130.0399.13
5.2.110.0080.0409.14
5.2.100.0090.0469.13
5.2.90.0100.0409.14
5.2.80.0130.0369.14
5.2.70.0060.0469.13
5.2.60.0070.0449.08
5.2.50.0080.0459.06
5.2.40.0090.0379.03
5.2.30.0070.0419.01
5.2.20.0060.0298.99
5.2.10.0050.0308.91
5.2.00.0030.0378.77
5.1.60.0040.0378.04
5.1.50.0110.0428.04
5.1.40.0080.0358.03
5.1.30.0040.0418.37
5.1.20.0040.0308.40
5.1.10.0060.0288.12
5.1.00.0050.0278.12
5.0.50.0030.0256.59
5.0.40.0050.0206.46
5.0.30.0080.0306.27
5.0.20.0040.0206.24
5.0.10.0050.0196.22
5.0.00.0070.0286.21
4.4.90.0020.0214.78
4.4.80.0050.0244.75
4.4.70.0030.0234.76
4.4.60.0030.0174.76
4.4.50.0030.0204.77
4.4.40.0020.0274.71
4.4.30.0040.0154.76
4.4.20.0050.0144.84
4.4.10.0030.0164.85
4.4.00.0030.0264.76
4.3.110.0040.0154.67
4.3.100.0040.0144.66
4.3.90.0040.0154.64
4.3.80.0040.0254.58
4.3.70.0060.0124.63
4.3.60.0030.0154.63
4.3.50.0040.0164.63
4.3.40.0040.0244.54
4.3.30.0030.0163.27
4.3.20.0050.0183.25
4.3.10.0030.0183.21
4.3.00.0230.02710.37

preferences:
36.37 ms | 401 KiB | 5 Q