3v4l.org

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

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.0070.01018.05
8.3.50.0110.00721.93
8.3.40.0070.00718.71
8.3.30.0130.00318.32
8.3.20.0070.00020.09
8.3.10.0080.00021.82
8.3.00.0040.00419.47
8.2.180.0090.01316.63
8.2.170.0060.00822.96
8.2.160.0140.00020.27
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0040.00419.45
8.2.120.0000.00826.35
8.2.110.0000.00920.34
8.2.100.0080.00318.04
8.2.90.0030.00518.91
8.2.80.0080.00017.97
8.2.70.0090.00017.50
8.2.60.0050.00317.91
8.2.50.0030.00518.07
8.2.40.0000.00822.34
8.2.30.0030.00520.52
8.2.20.0070.00017.67
8.2.10.0040.00418.09
8.2.00.0020.00517.96
8.1.280.0070.00725.92
8.1.270.0160.00320.34
8.1.260.0030.00528.09
8.1.250.0050.00228.09
8.1.240.0030.00523.85
8.1.230.0080.00417.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.22
8.1.180.0000.00718.10
8.1.170.0050.00518.65
8.1.160.0030.00520.70
8.1.150.0050.00218.82
8.1.140.0050.00319.57
8.1.130.0000.00717.54
8.1.120.0030.00317.30
8.1.110.0040.00417.40
8.1.100.0000.00717.21
8.1.90.0030.00617.31
8.1.80.0040.00417.38
8.1.70.0000.00817.26
8.1.60.0080.00017.44
8.1.50.0040.00417.34
8.1.40.0000.00717.46
8.1.30.0000.00817.65
8.1.20.0000.00717.60
8.1.10.0040.00417.45
8.1.00.0050.00317.24
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.37
8.0.270.0040.00417.13
8.0.260.0030.00517.15
8.0.250.0000.00616.88
8.0.240.0060.00016.89
8.0.230.0030.00317.02
8.0.220.0070.00016.89
8.0.210.0030.00616.87
8.0.200.0060.00016.94
8.0.190.0050.00516.91
8.0.180.0080.00016.93
8.0.170.0070.00016.79
8.0.160.0030.00316.84
8.0.150.0040.00416.84
8.0.140.0000.00716.80
8.0.130.0090.00013.21
8.0.120.0000.00716.89
8.0.110.0000.00816.82
8.0.100.0080.00016.74
8.0.90.0040.00316.68
8.0.80.0130.00316.87
8.0.70.0000.00816.70
8.0.60.0000.00816.78
8.0.50.0000.00716.68
8.0.30.0080.01117.11
8.0.20.0090.00917.40
8.0.10.0030.00316.80
8.0.00.0120.00616.82
7.4.330.0000.00516.84
7.4.320.0030.00316.52
7.4.300.0000.00616.42
7.4.290.0030.00316.44
7.4.280.0000.00816.53
7.4.270.0050.00216.34
7.4.260.0030.00316.57
7.4.250.0040.00416.25
7.4.240.0020.00516.45
7.4.230.0070.00016.53
7.4.220.0080.00816.47
7.4.210.0000.01416.39
7.4.200.0030.00316.63
7.4.160.0040.01116.47
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0070.00916.40
7.4.120.0080.00816.46
7.4.110.0030.01416.44
7.4.100.0090.00916.64
7.4.90.0120.00416.50
7.4.80.0090.01219.39
7.4.70.0030.01416.30
7.4.60.0080.00816.34
7.4.50.0140.00416.25
7.4.40.0170.00716.28
7.4.30.0090.00916.34
7.4.00.0110.00414.99
7.3.330.0000.00613.11
7.3.320.0000.00813.18
7.3.310.0040.00416.14
7.3.300.0000.00716.14
7.3.290.0070.00716.15
7.3.280.0050.01416.15
7.3.270.0100.00717.40
7.3.260.0150.01216.45
7.3.250.0080.01116.34
7.3.240.0140.00616.18
7.3.230.0120.00616.39
7.3.210.0100.00716.30
7.3.200.0100.01316.41
7.3.190.0060.01116.40
7.3.180.0170.00316.12
7.3.170.0040.01216.27
7.3.160.0060.01616.31
7.2.330.0140.00416.16
7.2.320.0090.00916.46
7.2.310.0070.01716.35
7.2.300.0120.01216.33
7.2.290.0150.00616.46
7.2.110.0320.01316.23
7.2.60.0100.00716.56
7.2.00.0110.00019.03
7.1.200.0090.00315.71
7.1.100.0050.01617.98
7.1.70.0080.00017.22
7.1.60.0130.00619.52
7.1.50.0080.01516.91
7.1.00.0030.07722.28
7.0.200.0000.00916.56
7.0.60.0200.07720.03
7.0.50.0070.05717.89
7.0.40.0030.04720.19
7.0.30.0230.03720.09
7.0.20.0400.05720.30
7.0.10.0100.06720.20
7.0.00.0100.05720.11
5.6.280.0030.04720.88
5.6.210.0070.05320.44
5.6.200.0170.07318.13
5.6.190.0070.08320.41
5.6.180.0200.05020.43
5.6.170.0330.07320.47
5.6.160.0030.08020.49
5.6.150.0070.08018.18
5.6.140.0070.03318.14
5.6.130.0130.07318.21
5.6.120.0030.08721.03
5.6.110.0000.05021.01
5.6.100.0130.08021.03
5.6.90.0070.08720.87
5.6.80.0130.07720.34
5.5.350.0130.08320.38
5.5.340.0070.08017.92
5.5.330.0070.04020.36
5.5.320.0400.05720.20
5.5.310.0170.04320.18
5.5.300.0100.04317.88
5.5.290.0100.07718.00
5.5.280.0070.06720.84
5.5.270.0130.07720.75
5.5.260.0130.07320.96
5.5.250.0170.07720.79
5.5.240.0300.05720.25

preferences:
60.46 ms | 401 KiB | 5 Q