3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("Puppy", "Teaser", "Chase"); foreach($arr as $key => $a) { if ($a == "Teaser") array_splice($arr, $key, 1); } var_dump($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.0110.00316.48
8.3.60.0040.01118.43
8.3.50.0130.00521.96
8.3.40.0070.00718.73
8.3.30.0190.00319.02
8.3.20.0030.00620.21
8.3.10.0000.00820.36
8.3.00.0040.00419.26
8.2.180.0070.00718.29
8.2.170.0100.00722.96
8.2.160.0140.00020.49
8.2.150.0040.01124.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00022.18
8.2.110.0070.00321.00
8.2.100.0110.00017.72
8.2.90.0050.00317.90
8.2.80.0000.00919.16
8.2.70.0000.00817.50
8.2.60.0040.00417.90
8.2.50.0030.00518.07
8.2.40.0000.00818.16
8.2.30.0050.00219.25
8.2.20.0000.00817.66
8.2.10.0000.00918.17
8.2.00.0000.00817.77
8.1.280.0100.01025.92
8.1.270.0050.00323.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.50
8.1.230.0050.00520.88
8.1.220.0000.00817.74
8.1.210.0000.01019.04
8.1.200.0000.00917.35
8.1.190.0060.00317.22
8.1.180.0050.00318.10
8.1.170.0000.00818.67
8.1.160.0050.00222.04
8.1.150.0000.00718.87
8.1.140.0000.00717.41
8.1.130.0000.00817.86
8.1.120.0040.00417.47
8.1.110.0050.00317.40
8.1.100.0040.00417.47
8.1.90.0030.00317.46
8.1.80.0100.00017.37
8.1.70.0000.00817.42
8.1.60.0060.00317.58
8.1.50.0060.00317.53
8.1.40.0000.00717.38
8.1.30.0030.00617.59
8.1.20.0040.00417.57
8.1.10.0000.00817.50
8.1.00.0030.00617.31
8.0.300.0070.00020.04
8.0.290.0000.00816.63
8.0.280.0030.00318.29
8.0.270.0070.00017.21
8.0.260.0030.00317.24
8.0.250.0030.00316.83
8.0.240.0040.00416.97
8.0.230.0030.00316.83
8.0.220.0070.00016.82
8.0.210.0000.00716.83
8.0.200.0030.00316.83
8.0.190.0000.00816.84
8.0.180.0000.00716.89
8.0.170.0040.00416.97
8.0.160.0000.00816.88
8.0.150.0000.00716.84
8.0.140.0000.00816.90
8.0.130.0030.00313.23
8.0.120.0020.00516.84
8.0.110.0040.00416.87
8.0.100.0060.00316.75
8.0.90.0040.00416.81
8.0.80.0070.01416.76
8.0.70.0040.00416.90
8.0.60.0070.00016.88
8.0.50.0070.00016.89
8.0.30.0080.01216.94
8.0.20.0050.02117.40
8.0.10.0040.00416.88
8.0.00.0080.00916.70
7.4.330.0000.00515.01
7.4.320.0000.00616.59
7.4.300.0000.00616.43
7.4.290.0000.00816.56
7.4.280.0080.00016.57
7.4.270.0040.00416.58
7.4.260.0030.00316.50
7.4.250.0050.00316.50
7.4.240.0050.00216.53
7.4.230.0070.00016.47
7.4.220.0090.00916.41
7.4.210.0070.00716.53
7.4.200.0070.00016.29
7.4.160.0060.01116.49
7.4.150.0170.00417.40
7.4.140.0120.00617.86
7.4.130.0130.00716.54
7.4.120.0110.00616.46
7.4.110.0070.01016.31
7.4.100.0130.01016.61
7.4.90.0130.00316.20
7.4.80.0110.00719.37
7.4.70.0140.00416.63
7.4.60.0130.00316.57
7.4.50.0040.00416.54
7.4.40.0080.00816.55
7.4.30.0080.00816.55
7.4.00.0100.00614.78
7.3.330.0000.00713.01
7.3.320.0060.00013.01
7.3.310.0090.00016.18
7.3.300.0030.00316.11
7.3.290.0060.01216.18
7.3.280.0070.00816.31
7.3.270.0080.01617.40
7.3.260.0140.00916.38
7.3.250.0060.01316.57
7.3.240.0120.00616.29
7.3.230.0120.00916.39
7.3.210.0090.01516.51
7.3.200.0130.00319.39
7.3.190.0100.00816.30
7.3.180.0110.00716.24
7.3.170.0150.00816.32
7.3.160.0080.01316.30
7.2.330.0150.00316.77
7.2.320.0060.01216.73
7.2.310.0090.01316.47
7.2.300.0060.01316.43
7.2.290.0110.00716.68
7.1.200.0030.01015.86
7.1.70.0000.00817.25
7.1.60.0100.01419.32
7.1.50.0090.01616.92
7.1.00.0030.07322.30
7.0.200.0000.01116.52
7.0.140.0030.07321.92
7.0.70.4930.04019.89
7.0.60.0070.03719.93
7.0.50.0000.08717.86
7.0.40.0070.04320.07
7.0.30.0500.07720.04
7.0.20.0170.04020.11
7.0.10.0330.06720.12
7.0.00.0130.08020.30
5.6.280.0100.07020.88
5.6.210.0100.07720.54
5.6.200.0030.08718.11
5.6.190.0000.05020.60
5.6.180.0070.07320.61
5.6.170.0270.03320.38
5.6.160.0030.04320.37
5.6.150.0100.04718.16
5.6.140.0100.06318.11
5.6.130.0070.08318.08
5.6.120.0070.06021.05
5.6.110.0070.07321.09
5.6.100.0170.07320.88
5.6.90.0030.08721.13
5.6.80.0070.05320.40
5.6.70.0200.07720.36
5.5.350.0030.04720.40
5.5.340.0000.08017.93
5.5.330.0070.05320.46
5.5.320.0070.06320.44
5.5.310.0330.07320.18
5.5.300.0130.06317.89
5.5.290.0130.06717.91
5.5.280.0100.06320.76
5.5.270.0070.06720.79
5.5.260.0000.09320.73
5.5.250.0030.06720.46
5.5.240.0130.07020.23
5.4.450.0570.04019.59
5.4.440.0800.05319.47
5.4.430.0900.05319.42
5.4.420.0700.00019.29
5.4.410.0670.00019.42
5.4.400.0830.00019.25
5.4.390.0830.00019.18
5.4.380.0370.07018.77
5.4.370.0330.07718.68
5.4.360.0300.05718.61
5.4.350.0330.05718.74
5.4.340.0300.06718.69
5.4.320.0060.03612.46
5.4.310.0080.03612.45
5.4.300.0060.03512.46
5.4.290.0060.03712.46
5.4.280.0070.03412.35
5.4.270.0080.04112.35
5.4.260.0070.03712.35
5.4.250.0060.04212.35
5.4.240.0060.03512.35
5.4.230.0070.03712.34
5.4.220.0080.03512.34
5.4.210.0090.03112.34
5.4.200.0070.03812.34
5.4.190.0060.03412.34
5.4.180.0050.04212.34
5.4.170.0080.03812.35
5.4.160.0070.03412.34
5.4.150.0030.03712.34
5.4.140.0100.03112.02
5.4.130.0090.03712.01
5.4.120.0070.04111.97
5.4.110.0040.03811.97
5.4.100.0060.03511.97
5.4.90.0050.03711.97
5.4.80.0050.03811.96
5.4.70.0090.03311.96
5.4.60.0070.03411.96
5.4.50.0080.03511.96
5.4.40.0070.03511.96
5.4.30.0080.03811.95
5.4.20.0070.03711.95
5.4.10.0060.05111.95
5.4.00.0040.04211.44
5.3.290.0070.03712.80
5.3.280.0090.03812.71
5.3.270.0060.04312.73
5.3.260.0090.03512.71
5.3.250.0070.03812.72
5.3.240.0110.03812.72
5.3.230.0060.04912.71
5.3.220.0100.03812.68
5.3.210.0040.04212.68
5.3.200.0080.03712.68
5.3.190.0060.04012.68
5.3.180.0080.04012.67
5.3.170.0040.03912.67
5.3.160.0050.03712.67
5.3.150.0080.04512.67
5.3.140.0070.03612.66
5.3.130.0040.04112.66
5.3.120.0040.04112.66
5.3.110.0050.03912.66
5.3.100.0080.03512.12
5.3.90.0080.03512.08
5.3.80.0050.03612.07
5.3.70.0040.03812.08
5.3.60.0080.03312.07
5.3.50.0040.03612.00
5.3.40.0070.03412.00
5.3.30.0100.03211.95
5.3.20.0060.03411.72
5.3.10.0080.03711.69
5.3.00.0080.03711.68
5.2.170.0060.0349.18
5.2.160.0030.0299.18
5.2.150.0050.0299.18
5.2.140.0060.0289.18
5.2.130.0050.0279.13
5.2.120.0040.0289.13
5.2.110.0060.0279.14
5.2.100.0050.0289.14
5.2.90.0050.0289.14
5.2.80.0040.0309.13
5.2.70.0050.0299.13
5.2.60.0050.0299.09
5.2.50.0090.0349.05
5.2.40.0060.0269.04
5.2.30.0060.0279.01
5.2.20.0080.0309.00
5.2.10.0060.0358.92
5.2.00.0050.0278.78
5.1.60.0030.0258.06
5.1.50.0030.0258.05
5.1.40.0070.0258.04
5.1.30.0030.0388.39
5.1.20.0050.0298.41
5.1.10.0050.0298.14
5.1.00.0070.0288.14
5.0.50.0070.0196.62
5.0.40.0040.0236.47
5.0.30.0020.0326.29
5.0.20.0040.0196.26
5.0.10.0050.0266.23
5.0.00.0040.0306.23
4.4.90.0010.0174.78
4.4.80.0040.0184.75
4.4.70.0020.0164.75
4.4.60.0040.0164.75
4.4.50.0010.0194.77
4.4.40.0020.0264.70
4.4.30.0020.0164.76
4.4.20.0020.0164.85
4.4.10.0020.0164.85
4.4.00.0030.0264.76
4.3.110.0020.0174.67
4.3.100.0040.0134.66
4.3.90.0010.0164.63
4.3.80.0030.0244.59
4.3.70.0040.0174.63
4.3.60.0020.0214.63
4.3.50.0040.0154.63
4.3.40.0050.0294.54
4.3.30.0040.0143.29
4.3.20.0040.0213.26
4.3.10.0020.0163.23
4.3.00.0070.01314.30

preferences:
39.17 ms | 401 KiB | 5 Q