3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('foo' => 'bar', 'baz' => 'bat'); array_walk($array, function($val,$key) use(&$array){ if ($val == 'bar') { unset($array[$key]); } }); var_dump($array);

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.0100.00618.26
8.3.50.0090.00616.25
8.3.40.0120.00318.90
8.3.30.0000.01420.20
8.3.20.0000.00720.34
8.3.10.0000.00822.09
8.3.00.0070.00022.44
8.2.180.0120.00916.50
8.2.170.0060.00922.96
8.2.160.0060.00920.22
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0050.00319.79
8.2.110.0030.00622.20
8.2.100.0080.00417.78
8.2.90.0040.00419.77
8.2.80.0050.00317.97
8.2.70.0070.00417.75
8.2.60.0030.00618.16
8.2.50.0030.00618.07
8.2.40.0000.00818.28
8.2.30.0070.00018.19
8.2.20.0050.00317.76
8.2.10.0000.01017.69
8.2.00.0040.00417.66
8.1.270.0060.00320.40
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00620.87
8.1.230.0070.00420.87
8.1.220.0040.00417.79
8.1.210.0000.00818.83
8.1.200.0030.00617.35
8.1.190.0050.00317.53
8.1.180.0000.00718.78
8.1.170.0030.00618.50
8.1.160.0050.00322.08
8.1.150.0040.00418.64
8.1.140.0030.00617.45
8.1.130.0070.00017.74
8.1.120.0040.00417.36
8.1.110.0070.00017.35
8.1.100.0060.00317.46
8.1.90.0000.00717.43
8.1.80.0000.00717.35
8.1.70.0030.00317.36
8.1.60.0000.00817.64
8.1.50.0040.00417.50
8.1.40.0000.00717.51
8.1.30.0000.00717.64
8.1.20.0000.00817.72
8.1.10.0000.00717.54
8.1.00.0000.00717.41
8.0.300.0050.00320.04
8.0.290.0040.00417.05
8.0.280.0000.00718.36
8.0.270.0000.00717.31
8.0.260.0070.00016.81
8.0.250.0030.00316.93
8.0.240.0000.00816.84
8.0.230.0030.00316.85
8.0.220.0030.00416.91
8.0.210.0030.00416.79
8.0.200.0030.00316.96
8.0.190.0070.00016.85
8.0.180.0070.00016.82
8.0.170.0040.00416.80
8.0.160.0050.00316.77
8.0.150.0030.00316.79
8.0.140.0040.00716.91
8.0.130.0030.00313.27
8.0.120.0000.00816.91
8.0.110.0070.00016.85
8.0.100.0040.00416.78
8.0.90.0070.00016.75
8.0.80.0090.00616.85
8.0.70.0070.00016.75
8.0.60.0040.00416.86
8.0.50.0070.00016.89
8.0.30.0090.00917.17
8.0.20.0080.01117.40
8.0.10.0000.00817.05
8.0.00.0090.01016.72
7.4.330.0050.00015.00
7.4.320.0030.00316.48
7.4.300.0000.00616.45
7.4.290.0030.00516.52
7.4.280.0000.00716.52
7.4.270.0040.00416.61
7.4.260.0050.00316.47
7.4.250.0050.00316.32
7.4.240.0030.00516.52
7.4.230.0040.00416.38
7.4.220.0060.01616.46
7.4.210.0100.00516.59
7.4.200.0000.00816.41
7.4.190.0070.00016.69
7.4.160.0100.01316.57
7.4.150.0030.01417.40
7.4.140.0140.00917.86
7.4.130.0110.00816.42
7.4.120.0100.00716.54
7.4.110.0150.00416.55
7.4.100.0070.01116.58
7.4.90.0070.01116.61
7.4.80.0110.00619.39
7.4.70.0060.01016.33
7.4.60.0150.00916.41
7.4.50.0000.00516.61
7.4.40.0030.01322.77
7.4.30.0090.00916.46
7.4.00.0030.01314.57
7.3.330.0030.00213.15
7.3.320.0050.00013.37
7.3.310.0000.00716.35
7.3.300.0040.00416.31
7.3.290.0000.01516.30
7.3.280.0070.00816.23
7.3.270.0170.00717.40
7.3.260.0150.00716.41
7.3.250.0110.00516.31
7.3.240.0130.00716.60
7.3.230.0110.00616.48
7.3.210.0060.01216.28
7.3.200.0090.01219.39
7.3.190.0090.01316.55
7.3.180.0090.00616.40
7.3.170.0160.00716.37
7.3.160.0000.01516.46
7.3.120.0070.01115.14
7.3.10.0030.01316.64
7.3.00.0120.00316.81
7.2.330.0110.00716.61
7.2.320.0070.01016.68
7.2.310.0100.00716.57
7.2.300.0100.00616.80
7.2.290.0060.01016.50
7.2.130.0120.00316.75
7.2.120.0100.00716.98
7.2.110.0070.01016.92
7.2.100.0060.00316.95
7.2.90.0150.00016.93
7.2.80.0070.01116.60
7.2.70.0040.01116.79
7.2.60.0030.01516.61
7.2.50.0070.00716.82
7.2.40.0000.01016.88
7.2.30.0000.01616.96
7.2.20.0090.00616.82
7.2.10.0040.00816.76
7.2.00.0020.01218.05
7.1.250.0040.01215.84
7.1.100.0100.00718.02
7.1.70.0030.00717.19
7.1.60.0100.01019.40
7.1.50.0140.01016.98
7.1.00.0030.07722.44
7.0.200.0030.00616.63
7.0.140.0000.07721.99
7.0.70.4530.04019.89
7.0.60.0070.06019.78
7.0.50.0000.05017.87
7.0.40.0070.06720.08
7.0.30.0200.07020.16
7.0.20.0300.07020.23
7.0.10.0170.04320.23
7.0.00.0030.04320.14
5.6.280.0000.07721.10
5.6.210.0200.06320.61
5.6.200.0070.04718.29
5.6.190.0130.07720.63
5.6.180.0270.03720.56
5.6.170.0200.06320.71
5.6.160.0000.09320.61
5.6.150.0100.04318.21
5.6.140.0000.07718.11
5.6.130.0070.08018.15
5.6.120.0100.08321.09
5.6.110.0170.07720.95
5.6.100.0030.04021.07
5.6.90.0030.07321.02
5.6.80.0100.07720.52
5.6.70.0200.07320.41
5.5.350.0070.08320.41
5.5.340.0030.08317.99
5.5.330.0100.04320.21
5.5.320.0000.08720.30
5.5.310.0170.06020.30
5.5.300.0070.05717.98
5.5.290.0070.08017.95
5.5.280.0070.04020.64
5.5.270.0230.06720.76
5.5.260.0130.07020.76
5.5.250.0030.05320.58
5.5.240.0100.04320.26
5.4.450.0270.07019.15
5.4.440.0330.04719.47
5.4.430.0070.06319.58
5.4.420.0100.05719.18
5.4.410.0330.05019.57
5.4.400.0130.05718.88
5.4.390.0200.06019.06
5.4.380.0200.04718.52
5.4.370.0370.06018.72
5.4.360.0430.05018.47
5.4.350.0080.03412.02
5.4.340.0120.07812.01
5.4.320.0070.05112.50
5.4.310.0070.04212.50
5.4.300.0040.04012.51
5.4.290.0040.03912.50
5.4.280.0050.03812.39
5.4.270.0060.05112.40
5.4.260.0060.05212.39
5.4.250.0130.04718.90
5.4.240.0100.07318.96
5.4.230.0070.05718.80
5.4.220.0130.04718.72
5.4.210.0030.05718.95
5.4.200.0130.05718.79
5.4.190.0170.04718.63
5.4.180.0100.07318.97
5.4.170.0130.05719.01
5.4.160.0100.05718.96
5.4.150.0170.07018.98
5.4.140.0000.06016.36
5.4.130.0100.04316.42
5.4.120.0100.04716.38
5.4.110.0170.05716.41
5.4.100.0070.07716.55
5.4.90.0170.06316.49
5.4.80.0130.04716.45
5.4.70.0100.05016.34
5.4.60.0170.04716.47
5.4.50.0130.05716.59
5.4.40.0100.06016.50
5.4.30.0070.05716.46
5.4.20.0030.07716.50
5.4.10.0100.06016.38
5.4.00.0100.05316.04
5.3.290.0080.04012.80
5.3.280.0170.06314.57
5.3.270.0130.04714.61
5.3.260.0100.05014.60
5.3.250.0200.04014.82
5.3.240.0030.06314.57
5.3.230.0070.05014.67
5.3.220.0130.04714.73
5.3.210.0130.04714.57
5.3.200.0100.05014.56
5.3.190.0270.05014.66
5.3.180.0070.05714.64
5.3.170.0070.05014.57
5.3.160.0100.04714.69
5.3.150.0130.06314.64
5.3.140.0030.05714.57
5.3.130.0130.04714.76
5.3.120.0030.05714.76
5.3.110.0030.05714.53
5.3.100.0070.05014.16
5.3.90.0030.05314.00
5.3.80.0100.06714.04
5.3.70.0100.04714.11
5.3.60.0130.06314.15
5.3.50.0130.06014.02
5.3.40.0070.05014.18
5.3.30.0070.05014.00
5.3.20.0100.04713.52
5.3.10.0030.05013.73
5.3.00.0170.06313.71
5.2.170.0030.04311.04
5.2.160.0070.05311.07
5.2.150.0070.04710.90
5.2.140.0100.04311.29
5.2.130.0030.04010.88
5.2.120.0070.04311.11
5.2.110.0030.04311.21
5.2.100.0130.05310.98
5.2.90.0070.04311.02
5.2.80.0070.04011.11
5.2.70.0170.04311.01
5.2.60.0070.04710.95
5.2.50.0070.04011.13
5.2.40.0000.04310.76
5.2.30.0000.04711.06
5.2.20.0100.04010.97
5.2.10.0070.05310.79
5.2.00.0100.03710.80
5.1.60.0130.02710.04
5.1.50.0170.0409.92
5.1.40.0070.03710.20
5.1.30.0070.03710.27
5.1.20.0100.04710.52
5.1.10.0030.03710.16
5.1.00.0100.03010.11
5.0.50.0070.0278.46
5.0.40.0030.0278.50
5.0.30.0070.0408.25
5.0.20.0070.0278.34
5.0.10.0030.0278.11
5.0.00.0130.0477.98
4.4.90.0030.0377.50
4.4.80.0070.0207.50
4.4.70.0070.0277.50
4.4.60.0070.0237.50
4.4.50.0030.0207.50
4.4.40.0030.0337.50
4.4.30.0030.0207.50
4.4.20.0030.0237.49
4.4.10.0070.0207.49
4.4.00.0070.0377.50
4.3.110.0000.0337.50
4.3.100.0030.0307.50
4.3.90.0030.0207.50
4.3.80.0000.0337.50
4.3.70.0030.0307.50
4.3.60.0130.0107.50
4.3.50.0030.0207.50
4.3.40.0030.0377.50
4.3.30.0030.0237.50
4.3.20.0030.0207.50
4.3.10.0000.0237.50
4.3.00.0100.0237.30

preferences:
63.18 ms | 400 KiB | 5 Q