3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = ['apple', 'orange', 'melon', 'banana', 'pineapple']; foreach ($fruits as $key=>$fruit) { if (in_array($fruit, ['apple', 'orange', 'melon', 'banana'])) { unset($fruits[$key]); } } print_r($fruits);

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.4.10.0030.00619.64
8.3.140.0150.00617.31
8.3.130.0000.01116.82
8.3.120.0040.00418.77
8.3.110.0060.00320.94
8.3.100.0050.00524.06
8.3.90.0000.00816.39
8.3.80.0030.00618.43
8.3.70.0150.00018.55
8.3.60.0100.00718.20
8.3.50.0070.00818.69
8.3.40.0110.01118.72
8.3.30.0090.00618.59
8.3.20.0040.00420.65
8.3.10.0050.00321.64
8.3.00.0180.00022.51
8.2.250.0120.00316.37
8.2.240.0100.01016.92
8.2.230.0050.00322.58
8.2.220.0040.00737.54
8.2.210.0150.00426.77
8.2.200.0070.00316.63
8.2.190.0130.00718.29
8.2.180.0180.00416.75
8.2.170.0110.00418.92
8.2.160.0070.01022.96
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00321.04
8.2.120.0000.00826.35
8.2.110.0060.00322.31
8.2.100.0060.00617.97
8.2.90.0040.00417.63
8.2.80.0000.00817.97
8.2.70.0000.00817.90
8.2.60.0000.00817.89
8.2.50.0000.00818.10
8.2.40.0000.00821.20
8.2.30.0060.00319.36
8.2.20.0080.00018.06
8.2.10.0040.00419.43
8.2.00.0040.00418.10
8.1.300.0040.00420.32
8.1.290.0090.00018.88
8.1.280.0070.00725.92
8.1.270.0060.00320.79
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00624.03
8.1.230.0000.01119.16
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0060.00317.22
8.1.180.0030.00618.10
8.1.170.0040.00418.57
8.1.160.0040.00418.83
8.1.150.0020.00518.80
8.1.140.0040.00420.13
8.1.130.0000.00717.31
8.1.120.0040.00417.47
8.1.110.0000.00717.44
8.1.100.0050.00217.41
8.1.90.0030.00617.43
8.1.80.0040.00417.50
8.1.70.0000.00717.49
8.1.60.0090.00017.59
8.1.50.0060.00317.39
8.1.40.0040.00417.38
8.1.30.0050.00317.47
8.1.20.0040.00417.47
8.1.10.0080.00017.44
8.1.00.0000.00717.39
8.0.300.0060.00319.70
8.0.290.0040.00716.58
8.0.280.0000.00718.35
8.0.270.0080.00017.31
8.0.260.0050.00317.35
8.0.250.0070.00016.95
8.0.240.0000.00716.81
8.0.230.0080.00016.84
8.0.220.0030.00316.86
8.0.210.0070.00016.77
8.0.200.0040.00416.92
8.0.190.0080.00016.86
8.0.180.0000.00716.90
8.0.170.0030.00616.88
8.0.160.0040.00416.96
8.0.150.0000.00816.85
8.0.140.0050.00316.80
8.0.130.0030.00313.35
8.0.120.0040.00416.82
8.0.110.0030.00516.80
8.0.100.0090.00016.81
8.0.90.0050.00316.68
8.0.80.0060.00916.86
8.0.70.0030.00516.83
8.0.60.0040.00416.71
8.0.50.0000.00716.82
8.0.30.0120.00716.88
8.0.20.0150.00417.21
8.0.10.0060.01317.12
8.0.00.0100.01116.61
7.4.330.0000.00515.55
7.4.320.0060.00016.64
7.4.300.0030.00316.58
7.4.290.0030.00316.59
7.4.280.0000.00716.52
7.4.270.0040.00416.51
7.4.260.0070.00016.37
7.4.250.0040.00516.46
7.4.240.0000.00716.60
7.4.230.0030.00516.47
7.4.220.0050.00216.52
7.4.210.0080.00916.57
7.4.200.0070.00016.49
7.4.160.0100.00716.46
7.4.140.0100.00717.86
7.4.130.0060.01016.46
7.4.120.0050.01216.49
7.4.110.0040.01216.55
7.4.100.0070.01716.55
7.4.90.0100.00716.43
7.4.80.0120.00619.39
7.4.70.0100.00616.61
7.4.60.0110.00516.40
7.4.50.0030.01216.55
7.4.40.0000.01916.49
7.4.00.0030.01014.74
7.3.330.0060.00013.00
7.3.320.0030.00313.01
7.3.310.0040.00416.27
7.3.300.0030.00316.25
7.3.290.0070.00016.25
7.3.280.0080.01116.25
7.3.260.0120.00916.32
7.3.240.0100.00816.27
7.3.230.0090.00616.29
7.3.210.0090.01216.24
7.3.200.0130.00316.59
7.3.190.0080.01116.59
7.3.180.0130.00316.22
7.3.170.0120.00616.61
7.3.160.0080.00816.60
7.3.120.0100.00314.86
7.3.110.0090.00614.82
7.3.100.0000.01215.01
7.3.90.0090.00614.64
7.3.80.0060.00914.91
7.3.70.0130.00315.00
7.3.60.0070.00914.68
7.3.50.0040.01114.77
7.3.40.0080.00414.88
7.3.30.0090.00514.66
7.3.20.1540.00415.43
7.3.10.1440.00615.39
7.3.00.1550.01015.32
7.2.330.0060.01116.59
7.2.320.0080.01116.59
7.2.310.0100.00716.44
7.2.300.0060.01116.73
7.2.290.0140.00316.55
7.2.250.0090.00914.74
7.2.240.0140.00315.27
7.2.230.0070.01015.16
7.2.220.0130.00015.09
7.2.210.0070.00714.76
7.2.200.0030.00614.91
7.2.190.0040.00815.11
7.2.180.0140.00415.00
7.2.170.0000.01415.11
7.2.160.0080.01014.87
7.2.150.2010.01014.71
7.2.140.2080.01015.06
7.2.130.2130.01215.06
7.2.120.2500.00715.05
7.2.110.2340.00814.91
7.2.100.2090.00814.73
7.2.90.2300.00314.87
7.2.80.2500.01214.86
7.2.70.2450.00514.74
7.2.60.2260.00714.95
7.2.50.2250.00514.90
7.2.40.2310.00514.84
7.2.30.1070.01014.94
7.2.20.0970.00614.87
7.2.10.2050.00814.90
7.2.00.2030.00715.02
7.1.330.0030.01215.98
7.1.320.0110.00015.64
7.1.310.0090.00615.85
7.1.300.0070.00715.53
7.1.290.0070.00315.93
7.1.280.0060.00916.00
7.1.270.1190.00314.44
7.1.260.1460.00714.57
7.1.250.2660.00713.83

preferences:
15.48 ms | 403 KiB | 5 Q