3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c='{"ContentBlock1":["2","22"]}'; $cid = json_decode($c); foreach ($cid as $key){ $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.0120.00316.50
8.3.50.0070.01522.00
8.3.40.0100.01018.77
8.3.30.0070.00718.84
8.3.20.0070.00020.36
8.3.10.0040.00423.61
8.3.00.0050.00319.26
8.2.180.0100.00616.38
8.2.170.0070.00722.96
8.2.160.0060.01320.35
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0040.00422.08
8.2.110.0030.00622.12
8.2.100.0030.00717.78
8.2.90.0000.00718.92
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0030.00617.93
8.2.50.0050.00318.07
8.2.40.0070.00018.22
8.2.30.0050.00218.04
8.2.20.0040.00417.66
8.2.10.0020.00518.13
8.2.00.0000.01017.71
8.1.280.0090.00625.92
8.1.270.0060.00323.61
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0070.00319.15
8.1.220.0030.00617.76
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0040.00417.53
8.1.180.0050.00318.10
8.1.170.0080.00018.63
8.1.160.0000.00722.08
8.1.150.0070.00018.68
8.1.140.0040.00417.48
8.1.130.0070.00017.86
8.1.120.0000.00717.44
8.1.110.0040.00317.45
8.1.100.0040.00417.43
8.1.90.0000.00717.43
8.1.80.0050.00317.48
8.1.70.0030.00317.42
8.1.60.0030.00517.61
8.1.50.0030.00517.50
8.1.40.0000.00817.52
8.1.30.0050.00317.53
8.1.20.0040.00417.69
8.1.10.0040.00417.43
8.1.00.0050.00217.38
8.0.300.0030.00718.77
8.0.290.0070.00017.18
8.0.280.0030.00618.39
8.0.270.0030.00317.25
8.0.260.0000.00617.09
8.0.250.0070.00016.94
8.0.240.0040.00416.88
8.0.230.0040.00416.96
8.0.220.0050.00316.86
8.0.210.0050.00216.74
8.0.200.0060.00016.92
8.0.190.0050.00516.84
8.0.180.0030.00516.89
8.0.170.0040.00416.93
8.0.160.0040.00416.91
8.0.150.0000.00816.85
8.0.140.0050.00316.84
8.0.130.0030.00313.32
8.0.120.0040.00416.78
8.0.110.0030.00516.89
8.0.100.0040.00416.77
8.0.90.0050.00216.84
8.0.80.0100.01016.78
8.0.70.0040.00416.75
8.0.60.0000.00816.87
8.0.50.0000.00816.67
8.0.30.0080.01017.04
8.0.20.0030.01617.40
8.0.10.0040.00417.05
8.0.00.0110.00716.71
7.4.330.0060.00015.00
7.4.320.0070.00016.47
7.4.300.0000.00616.50
7.4.290.0080.00016.48
7.4.280.0000.00716.63
7.4.270.0030.00316.48
7.4.260.0030.00616.46
7.4.250.0030.00616.39
7.4.240.0020.00516.50
7.4.230.0000.00716.58
7.4.220.0100.00716.62
7.4.210.0090.00716.54
7.4.200.0030.00316.48
7.4.190.0030.00316.56
7.4.160.0090.00616.43
7.4.150.0090.00917.40
7.4.140.0120.01317.86
7.4.130.0110.00616.46
7.4.120.0070.00916.44
7.4.110.0130.00316.41
7.4.100.0130.00716.44
7.4.90.0080.00916.52
7.4.80.0180.00319.39
7.4.70.0040.01816.51
7.4.60.0150.00416.51
7.4.50.0030.00616.40
7.4.40.0080.00822.77
7.4.30.0120.00316.25
7.4.00.0040.00814.83
7.3.330.0000.00713.04
7.3.320.0050.00013.23
7.3.310.0000.00716.29
7.3.300.0030.00316.34
7.3.290.0110.00416.27
7.3.280.0070.01216.38
7.3.270.0040.01217.40
7.3.260.0070.01416.32
7.3.250.0050.01216.42
7.3.240.0130.01016.29
7.3.230.0060.01416.55
7.3.210.0110.00616.21
7.3.200.0090.01219.39
7.3.190.0120.00616.47
7.3.180.0130.00316.41
7.3.170.0120.00916.54
7.3.160.0060.01016.35
7.3.120.0100.00614.74
7.2.330.0100.00716.57
7.2.320.0110.00716.70
7.2.310.0080.00816.50
7.2.300.0090.00816.61
7.2.290.0060.01216.73
7.2.00.0030.01019.26
7.1.100.0000.01118.31
7.1.70.0100.00616.90
7.1.60.0060.01619.33
7.1.50.0070.00716.89
7.1.00.0070.07322.33
7.0.200.0080.00016.46
7.0.140.0070.07022.00
7.0.60.0070.08719.93
7.0.50.0000.04717.95
7.0.40.0130.07320.40
7.0.30.0330.03020.09
7.0.20.0270.08320.19
7.0.10.0130.06720.30
7.0.00.0070.07720.20
5.6.280.0030.07320.89
5.6.210.0100.03720.76
5.6.200.0000.08018.19
5.6.190.0030.08320.50
5.6.180.0070.04020.57
5.6.170.0270.05020.54
5.6.160.0130.07020.57
5.6.150.0030.05018.24
5.6.140.0100.03318.28
5.6.130.0000.04318.12
5.6.120.0070.04320.99
5.6.110.0100.05021.09
5.6.100.0100.07720.96
5.6.90.0170.07721.13
5.6.80.0030.05320.40
5.5.350.0230.07720.38
5.5.340.0000.04318.02
5.5.330.0070.08320.42
5.5.320.0400.07020.37
5.5.310.0470.06020.27
5.5.300.0070.05018.08
5.5.290.0070.04317.98
5.5.280.0170.05020.96
5.5.270.0030.04320.95
5.5.260.0170.07320.79
5.5.250.0030.04020.75
5.5.240.0070.07320.28
5.4.450.0800.05719.59
5.4.440.0800.08019.60
5.4.430.0200.04319.46
5.4.420.0070.06019.52
5.4.410.0070.06018.97
5.4.400.0100.05318.91
5.4.390.0170.04318.63
5.4.380.0130.06718.75
5.4.370.0300.05018.55
5.4.360.0370.04718.71
5.4.350.0090.04312.00
5.4.340.0060.03412.00
5.4.320.0160.02712.48
5.4.310.0050.04212.48
5.4.300.0060.03712.48
5.4.290.0090.03612.48
5.4.280.0080.05412.35
5.4.270.0080.04312.35
5.4.260.0070.04012.35
5.4.250.0070.04412.35
5.4.240.0160.04812.35
5.4.230.0100.05412.34
5.4.220.0110.05112.34
5.4.210.0120.05912.34
5.4.200.0100.03712.34
5.4.190.0070.05312.34
5.4.180.0070.04912.34
5.4.170.0060.03712.35
5.4.160.0070.03612.35
5.4.150.0050.04412.34
5.4.140.0070.04012.02
5.4.130.0060.03912.02
5.4.120.0080.03511.97
5.4.110.0090.03511.97
5.4.100.0120.04311.97
5.4.90.0060.04811.97
5.4.80.0070.03711.97
5.4.70.0090.03811.96
5.4.60.0070.03511.96
5.4.50.0050.03911.96
5.4.40.0110.03511.95
5.4.30.0080.04711.95
5.4.20.0130.03511.95
5.4.10.0100.04511.95
5.4.00.0080.04711.45
5.3.290.0070.04812.80
5.3.280.0060.04212.71
5.3.270.0100.03912.72
5.3.260.0090.04912.72
5.3.250.0050.04512.72
5.3.240.0050.04312.72
5.3.230.0150.04512.70
5.3.220.0110.04112.68
5.3.210.0060.04012.68
5.3.200.0060.03812.68
5.3.190.0070.04012.68
5.3.180.0120.05312.67
5.3.170.0050.04112.67
5.3.160.0100.05212.67
5.3.150.0090.04112.68
5.3.140.0060.04012.66
5.3.130.0060.04312.66
5.3.120.0070.05412.66
5.3.110.0110.06212.65
5.3.100.0090.03812.11
5.3.90.0090.05012.08
5.3.80.0130.04312.07
5.3.70.0110.04712.07
5.3.60.0120.04312.07
5.3.50.0110.05112.00
5.3.40.0130.04612.00
5.3.30.0170.04211.95
5.3.20.0050.06211.73
5.3.10.0090.05511.69
5.3.00.0090.05511.68
5.2.170.0210.0469.17
5.2.160.0080.0449.17
5.2.150.0110.0409.18
5.2.140.0090.0499.17
5.2.130.0150.0409.13
5.2.120.0110.0359.13
5.2.110.0100.0439.14
5.2.100.0100.0349.14
5.2.90.0050.0339.14
5.2.80.0090.0329.13
5.2.70.0040.0379.13
5.2.60.0110.0429.09
5.2.50.0050.0379.05
5.2.40.0090.0459.03
5.2.30.0070.0339.01
5.2.20.0090.0298.99
5.2.10.0070.0408.91
5.2.00.0080.0408.77
5.1.60.0050.0298.04
5.1.50.0060.0338.04
5.1.40.0090.0388.02
5.1.30.0110.0358.37
5.1.20.0070.0278.40
5.1.10.0040.0298.12
5.1.00.0080.0238.12
5.0.50.0050.0216.60
5.0.40.0080.0176.46
5.0.30.0050.0326.27
5.0.20.0040.0206.24
5.0.10.0040.0216.22
5.0.00.0050.0316.21
4.4.90.0010.0184.78
4.4.80.0020.0174.75
4.4.70.0030.0164.75
4.4.60.0070.0124.75
4.4.50.0030.0174.77
4.4.40.0020.0284.70
4.4.30.0020.0174.76
4.4.20.0130.0334.84
4.4.10.0040.0234.85
4.4.00.0060.0324.76
4.3.110.0040.0234.67
4.3.100.0100.0204.66
4.3.90.0040.0154.63
4.3.80.0040.0274.59
4.3.70.0050.0224.63
4.3.60.0040.0224.63
4.3.50.0040.0224.62
4.3.40.0030.0264.54
4.3.30.0040.0203.27
4.3.20.0030.0273.25
4.3.10.0040.0213.21
4.3.00.0130.0207.11

preferences:
36.38 ms | 401 KiB | 5 Q