3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = [ 0 => ['test'], 1 => null ]; $bar = array_filter($foo, 'is_null'); $baz = array_diff($foo, $bar); var_dump($baz);

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.0070.01016.68
8.3.60.0070.01418.43
8.3.50.0110.00922.04
8.3.40.0060.00818.58
8.3.30.0070.00718.45
8.3.20.0050.00220.34
8.3.10.0000.00721.77
8.3.00.0030.00519.66
8.2.180.0090.00618.19
8.2.170.0150.00022.96
8.2.160.0040.00920.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00019.70
8.2.110.0070.00320.52
8.2.100.0110.00017.93
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0080.00017.25
8.2.60.0050.00317.80
8.2.50.0050.00318.07
8.2.40.0000.00822.37
8.2.30.0050.00220.48
8.2.20.0000.00817.51
8.2.10.0000.00717.96
8.2.00.0020.00518.04
8.1.280.0080.00625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00023.84
8.1.230.0060.00617.50
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0090.00017.35
8.1.180.0030.00518.10
8.1.170.0050.00318.34
8.1.160.0000.00720.55
8.1.150.0040.00418.81
8.1.140.0050.00319.42
8.1.130.0040.00417.63
8.1.120.0040.00417.39
8.1.110.0070.00017.41
8.1.100.0040.00417.28
8.1.90.0040.00417.29
8.1.80.0050.00217.39
8.1.70.0070.00017.31
8.1.60.0070.00017.39
8.1.50.0050.00317.52
8.1.40.0030.00517.34
8.1.30.0040.00417.41
8.1.20.0050.00217.56
8.1.10.0000.00817.42
8.1.00.0000.00817.36
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0000.00718.36
8.0.270.0000.00717.05
8.0.260.0000.00717.17
8.0.250.0030.00316.93
8.0.240.0000.00716.83
8.0.230.0070.00016.88
8.0.220.0070.00016.86
8.0.210.0030.00316.84
8.0.200.0000.00716.98
8.0.190.0000.00916.82
8.0.180.0040.00416.92
8.0.170.0090.00016.96
8.0.160.0030.00316.84
8.0.150.0000.00816.86
8.0.140.0040.00416.77
8.0.130.0090.00013.26
8.0.120.0040.00416.73
8.0.110.0070.00016.72
8.0.100.0000.00716.89
8.0.90.0070.00016.85
8.0.80.0060.01016.79
8.0.70.0000.00716.73
8.0.60.0050.00216.82
8.0.50.0050.00316.82
8.0.30.0100.00816.88
8.0.20.0120.00617.40
8.0.10.0050.00317.09
8.0.00.0090.00816.70
7.4.330.0050.00016.82
7.4.320.0000.00616.41
7.4.300.0000.00616.40
7.4.290.0030.00316.33
7.4.280.0040.00416.50
7.4.270.0030.00316.42
7.4.260.0030.00316.45
7.4.250.0000.00716.43
7.4.240.0040.00516.42
7.4.230.0070.00016.62
7.4.220.0040.01216.55
7.4.210.0100.00316.41
7.4.200.0000.00716.42
7.4.160.0080.00816.61
7.4.150.0120.01517.40
7.4.140.0120.00817.86
7.4.130.0140.00316.36
7.4.120.0110.00816.46
7.4.110.0090.00916.46
7.4.100.0110.00716.46
7.4.90.0130.01016.30
7.4.80.0140.00319.39
7.4.70.0140.00316.48
7.4.60.0040.01516.41
7.4.50.0110.00716.40
7.4.40.0130.00316.32
7.4.30.0190.00416.51
7.4.00.0040.00814.83
7.3.330.0050.00012.92
7.3.320.0050.00313.10
7.3.310.0070.00016.07
7.3.300.0060.00016.18
7.3.290.0110.00316.18
7.3.280.0080.01016.23
7.3.270.0100.00717.40
7.3.260.0090.01316.13
7.3.250.0100.00816.24
7.3.240.0110.00716.24
7.3.230.0070.01116.50
7.3.210.0080.01216.36
7.3.200.0130.00616.16
7.3.190.0090.01516.28
7.3.180.0090.00816.18
7.3.170.0100.01016.43
7.3.160.0100.01116.24
7.2.330.0110.00716.60
7.2.320.0030.01416.49
7.2.310.0100.00716.58
7.2.300.0130.00616.65
7.2.290.0030.01816.32
7.2.60.0070.00716.68
7.2.00.0030.00919.14
7.1.200.0070.00415.58
7.1.70.0080.00317.06
7.1.60.0100.00316.89
7.1.50.0090.01216.86
7.1.00.0030.07722.26
7.0.200.0040.01116.39
7.0.60.0070.08719.91
7.0.50.0070.04717.88
7.0.40.0030.04320.12
7.0.30.0100.05020.05
7.0.20.0230.04320.21
7.0.10.0100.07320.01
7.0.00.0070.09020.00
5.6.280.0000.05320.88
5.6.210.0130.07720.74
5.6.200.0000.06018.11
5.6.190.0030.09020.35
5.6.180.0300.03020.61
5.6.170.0330.07720.33
5.6.160.0030.06020.48
5.6.150.0070.06318.19
5.6.140.0000.04018.11
5.6.130.0170.07318.11
5.6.120.0070.08321.01
5.6.110.0030.05721.10
5.6.100.0200.03321.12
5.6.90.0030.08721.02
5.6.80.0100.07720.34
5.5.350.0070.07320.40
5.5.340.0100.07717.91
5.5.330.0070.04720.09
5.5.320.0130.05020.28
5.5.310.0300.08020.33
5.5.300.0070.07318.01
5.5.290.0030.06717.91
5.5.280.0200.05020.73
5.5.270.0030.09020.76
5.5.260.0030.08020.86
5.5.250.0130.05020.54
5.5.240.0270.07020.11

preferences:
64.57 ms | 401 KiB | 5 Q