3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"1":[1,"7"],"2":[2,"10"],"3":[3,"17"],"4":[4,"8"],"5":[5,"10"],"6":[6,"11"],"7":[7,"13"],"8":[8,"9"],"9":[9,"13"],"10":[10,"15"],"11":[11,"14"],"12":[12,"16"],"13":[13,"16"],"14":[14,"18"],"15":[15,"10"],"16":[16,"54"],"17":[17,"76"],"18":[18,"57"],"19":[19,"73"],"20":[20,"61"],"21":[21,"45"],"22":[22,"56"],"23":[23,"72"],"24":[24,"44"],"25":[25,"2"],"26":[26,"29"],"27":[27,"3"],"28":[28,"1"],"29":[29,"5"],"30":[30,0]}'; $arr = json_decode($json); echo json_encode(array_values($arr));

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.0090.00916.63
8.3.60.0070.01318.68
8.3.50.0080.01121.09
8.3.40.0070.01318.84
8.3.30.0100.00320.22
8.3.20.0000.00820.56
8.3.10.0040.00421.02
8.3.00.0080.00022.39
8.2.180.0110.00716.75
8.2.170.0040.01122.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00421.17
8.2.110.0030.00620.39
8.2.100.0090.00317.78
8.2.90.0080.00019.14
8.2.80.0080.00018.05
8.2.70.0090.00017.63
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0000.00819.49
8.2.20.0040.00417.70
8.2.10.0000.00717.66
8.2.00.0000.00717.79
8.1.280.0040.01525.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.83
8.1.230.0040.00823.85
8.1.220.0050.00318.77
8.1.210.0060.00318.99
8.1.200.0090.00017.23
8.1.190.0040.00417.41
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0040.00418.80
8.1.150.0070.00018.44
8.1.140.0000.00817.44
8.1.130.0000.00717.66
8.1.120.0000.00717.41
8.1.110.0000.00817.37
8.1.100.0020.00517.41
8.1.90.0000.00717.38
8.1.80.0080.00017.25
8.1.70.0030.00317.30
8.1.60.0030.00617.49
8.1.50.0000.00817.48
8.1.40.0000.00817.44
8.1.30.0040.00417.55
8.1.20.0040.00417.53
8.1.10.0030.00517.50
8.1.00.0040.00417.52
8.0.300.0040.00419.66
8.0.290.0040.00417.18
8.0.280.0030.00318.25
8.0.270.0030.00317.18
8.0.260.0060.00016.87
8.0.250.0000.00716.87
8.0.240.0040.00416.97
8.0.230.0000.00716.93
8.0.220.0000.00716.93
8.0.210.0000.00716.79
8.0.200.0000.00716.82
8.0.190.0090.00016.95
8.0.180.0070.00016.83
8.0.170.0030.00316.80
8.0.160.0040.00416.91
8.0.150.0060.00316.71
8.0.140.0070.00016.82
8.0.130.0060.00013.37
8.0.120.0040.00416.84
8.0.110.0040.00416.88
8.0.100.0000.00716.87
8.0.90.0040.00416.91
8.0.80.0040.01116.76
8.0.70.0040.00416.77
8.0.60.0030.00616.75
8.0.50.0050.00216.77
8.0.30.0120.00617.13
8.0.20.0110.00717.40
8.0.10.0040.00417.07
8.0.00.0140.02116.58
7.4.330.0000.00616.84
7.4.320.0070.00016.34
7.4.300.0000.00716.42
7.4.290.0000.00716.42
7.4.280.0030.00316.42
7.4.270.0030.00316.48
7.4.260.0050.00013.19
7.4.250.0050.00316.39
7.4.240.0050.00216.47
7.4.230.0000.00716.64
7.4.220.0120.00616.43
7.4.210.0050.01116.55
7.4.200.0000.00716.18
7.4.190.0070.00016.61
7.4.160.0060.01316.51
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0110.00616.44
7.4.120.0100.00816.54
7.4.110.0070.01016.28
7.4.100.0090.01216.66
7.4.90.0140.00616.42
7.4.80.0060.01219.39
7.4.70.0170.00016.47
7.4.60.0100.00616.37
7.4.50.0040.00416.45
7.4.40.0070.00922.77
7.4.30.0130.00316.40
7.4.00.0100.00715.04
7.3.330.0050.00013.12
7.3.320.0000.00512.86
7.3.310.0000.00716.15
7.3.300.0030.00316.21
7.3.290.0030.01016.16
7.3.280.0100.00716.23
7.3.270.0100.01317.40
7.3.260.0090.00918.24
7.3.250.0050.01216.22
7.3.240.0140.00416.40
7.3.230.0060.01216.41
7.3.210.0130.00616.37
7.3.200.0130.00719.39
7.3.190.0110.01216.35
7.3.180.0090.00616.31
7.3.170.0100.00716.27
7.3.160.0130.00616.43
7.3.120.0070.00714.59
7.2.330.0100.00616.44
7.2.320.0130.01016.65
7.2.310.0040.01516.71
7.2.300.0070.01416.43
7.2.290.0090.01316.22
7.2.60.0000.01316.54
7.2.00.0040.00819.32
7.1.200.0080.00415.80
7.1.100.0080.00017.80
7.1.70.0050.00217.04
7.1.60.0000.02319.17
7.1.50.0130.01016.61
7.1.00.0000.03722.42
7.0.200.0000.00716.41
7.0.140.0000.07322.21
7.0.90.0330.07719.96
7.0.80.0570.07019.98
7.0.70.0570.04719.90
7.0.60.0500.05019.98
7.0.50.0470.04020.31
7.0.40.0070.08020.09
7.0.30.0130.09020.10
7.0.20.0100.05020.14
7.0.10.0070.06020.14
7.0.00.0070.09020.10
5.6.280.0030.07321.07
5.6.240.0070.05320.61
5.6.230.0100.05720.73
5.6.220.0130.06020.64
5.6.210.0100.07320.57
5.6.200.0100.08720.93
5.6.190.0130.07321.13
5.6.180.0030.06021.00
5.6.170.0070.05720.95
5.6.160.0130.04020.88
5.6.150.0100.06720.93
5.6.140.0070.04721.07
5.6.130.0170.07320.96
5.6.120.0070.04721.03
5.6.110.0100.05721.05
5.6.100.0170.08321.15
5.6.90.0130.06020.93
5.6.80.0070.04020.34
5.6.70.0300.03320.32
5.6.60.0070.07720.46
5.6.50.0030.07020.54
5.6.40.0100.07720.38
5.6.30.0100.07720.44
5.6.20.0100.04720.42
5.6.10.0130.05720.36
5.6.00.0130.07020.44
5.5.380.0130.08020.41
5.5.370.0100.04320.34
5.5.360.0100.07720.48
5.5.350.0100.08020.35
5.5.340.0030.08320.92
5.5.330.0070.05020.88
5.5.320.0000.09320.88
5.5.310.0200.05320.91
5.5.300.0070.07720.88
5.5.290.0000.05020.90
5.5.280.0130.06320.87
5.5.270.0030.09020.86
5.5.260.0100.04720.88
5.5.250.0130.03720.69
5.5.240.0100.08020.21
5.5.230.0200.03720.01
5.5.220.0030.04320.20
5.5.210.0070.07720.19
5.5.200.0070.04020.12
5.5.190.0070.06020.21
5.5.180.0170.04320.25
5.5.160.0070.03720.24
5.5.150.0130.05020.05
5.5.140.0070.07720.05
5.5.130.0000.05020.17
5.5.120.0070.04720.23
5.5.110.0070.07020.18
5.5.100.0100.05020.05
5.5.90.0030.07019.96
5.5.80.0100.08020.04
5.5.70.0130.04720.13
5.5.60.0030.08020.04
5.5.50.0070.05320.07
5.5.40.0070.04720.05
5.5.30.0070.08319.98
5.5.20.0070.04720.07
5.5.10.0100.05319.99
5.5.00.0000.07020.02
5.4.450.0030.08319.30
5.4.440.0030.06319.36
5.4.430.0000.09019.21
5.4.420.0100.07019.55
5.4.410.0070.04719.22
5.4.400.0070.04019.12
5.4.390.0030.04019.14
5.4.380.0000.06019.11
5.4.370.0070.03719.05
5.4.360.0000.08319.12
5.4.350.0170.07319.07
5.4.340.0130.03319.07
5.4.320.0030.08018.91
5.4.310.0070.08319.02
5.4.300.0070.07319.11
5.4.290.0070.05719.11
5.4.280.0100.07719.09
5.4.270.0100.06718.78
5.4.260.0070.05719.14
5.4.250.0030.04318.95
5.4.240.0000.08319.14
5.4.230.0130.03718.95
5.4.220.0000.04719.09
5.4.210.0070.08018.92
5.4.200.0000.04319.03
5.4.190.0030.07019.01
5.4.180.0130.07019.02
5.4.170.0100.06719.05
5.4.160.0200.06719.07
5.4.150.0130.07719.12
5.4.140.0070.07716.08
5.4.130.0130.06016.23
5.4.120.0030.05016.31
5.4.110.0030.07316.24
5.4.100.0030.07316.38
5.4.90.0030.07016.34
5.4.80.0170.07016.54
5.4.70.0130.06716.26
5.4.60.0130.06316.41
5.4.50.0000.06316.24
5.4.40.0100.06716.40
5.4.30.0000.05016.27
5.4.20.0070.04716.33
5.4.10.0100.05016.20
5.4.00.0130.06315.68
5.3.290.0100.08014.63
5.3.280.0030.04314.44
5.3.270.0130.07314.61
5.3.260.0030.05014.48
5.3.250.0100.07314.60
5.3.240.0070.05714.55
5.3.230.0070.07314.62
5.3.220.0000.05014.60
5.3.210.0030.07714.58
5.3.200.0070.06314.60
5.3.190.0100.07014.56
5.3.180.0130.05714.39
5.3.170.0100.07714.57
5.3.160.0100.05714.43
5.3.150.0070.04014.45
5.3.140.0030.07714.41
5.3.130.0070.04714.54
5.3.120.0070.07714.40
5.3.110.0030.05314.55
5.3.100.0030.07313.96
5.3.90.0130.07713.87
5.3.80.0070.06314.04
5.3.70.0100.06713.89
5.3.60.0070.08013.87
5.3.50.0070.07013.94
5.3.40.0130.07313.92
5.3.30.0130.06713.78
5.3.20.0000.04313.67
5.3.10.0100.03713.53
5.3.00.0030.04013.64
5.2.170.0030.06311.20
5.2.160.0070.03711.12
5.2.150.0070.04311.15
5.2.140.0030.03711.11
5.2.130.0070.05011.18
5.2.120.0070.05711.10
5.2.110.0070.04711.11
5.2.100.0030.03711.14
5.2.90.0070.04311.06
5.2.80.0030.04710.95
5.2.70.0030.06010.93
5.2.60.0070.05311.08
5.2.50.0130.05711.07
5.2.40.0030.05010.99
5.2.30.0030.06310.96
5.2.20.0100.04010.81
5.2.10.0070.04710.88
5.2.00.0100.04310.58
5.1.60.0070.0309.83
5.1.50.0000.03010.05
5.1.40.0000.04710.03
5.1.30.0070.05710.38
5.1.20.0030.04010.42
5.1.10.0030.02310.05
5.1.00.0030.04310.09
5.0.50.0030.0238.53
5.0.40.0070.0208.41
5.0.30.0030.0478.25
5.0.20.0030.0378.22
5.0.10.0100.0278.16
5.0.00.0070.0608.23
4.4.90.0030.0337.35
4.4.80.0100.0177.35
4.4.70.0030.0337.35
4.4.60.0030.0337.35
4.4.50.0030.0307.35
4.4.40.0030.0237.35
4.4.30.0030.0307.35
4.4.20.0000.0177.35
4.4.10.0070.0137.35
4.4.00.0130.0407.35
4.3.110.0030.0177.35
4.3.100.0030.0237.35
4.3.90.0070.0307.35
4.3.80.0000.0537.35
4.3.70.0000.0237.35
4.3.60.0000.0277.35
4.3.50.0030.0307.35
4.3.40.0030.0507.35
4.3.30.0030.0407.35
4.3.20.0070.0337.35
4.3.10.0100.0307.35
4.3.00.0000.0377.35

preferences:
66.42 ms | 401 KiB | 5 Q