3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = [ "foo" => 1, "bar" => null, ]; var_dump($foo); var_dump(array_filter($foo));

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.0150.00618.40
8.3.60.0070.01116.50
8.3.50.0100.00717.41
8.3.40.0110.00418.73
8.3.30.0070.00718.59
8.3.20.0050.00320.22
8.3.10.0040.00421.78
8.3.00.0080.00017.53
8.2.180.0140.00716.63
8.2.170.0110.00422.96
8.2.160.0030.01020.50
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.25
8.2.120.0070.00026.35
8.2.110.0050.00519.32
8.2.100.0060.00617.85
8.2.90.0080.00017.63
8.2.80.0070.00319.11
8.2.70.0030.00617.80
8.2.60.0070.00017.97
8.2.50.0040.00418.10
8.2.40.0050.00220.42
8.2.30.0040.00419.16
8.2.20.0050.00218.00
8.2.10.0000.00717.96
8.2.00.0000.00717.97
8.1.280.0040.01525.92
8.1.270.0040.00423.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00317.23
8.1.230.0110.00017.70
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.10
8.1.190.0060.00317.10
8.1.180.0060.00318.10
8.1.170.0040.00418.65
8.1.160.0000.00718.94
8.1.150.0000.00820.45
8.1.140.0050.00319.55
8.1.130.0040.00417.43
8.1.120.0030.00317.29
8.1.110.0040.00417.28
8.1.100.0000.00717.41
8.1.90.0030.00717.27
8.1.80.0070.00017.42
8.1.70.0000.00717.27
8.1.60.0040.00417.45
8.1.50.0030.00617.52
8.1.40.0040.00417.35
8.1.30.0030.00517.52
8.1.20.0040.00817.52
8.1.10.0000.00717.40
8.1.00.0000.00817.27
8.0.300.0080.00018.84
8.0.290.0060.00616.58
8.0.280.0030.00318.30
8.0.270.0030.00317.20
8.0.260.0030.00316.71
8.0.250.0000.00716.78
8.0.240.0000.00916.86
8.0.230.0070.00016.92
8.0.220.0070.00016.78
8.0.210.0000.00716.81
8.0.200.0040.00416.85
8.0.190.0000.00816.78
8.0.180.0000.00716.73
8.0.170.0050.00216.75
8.0.160.0000.00916.69
8.0.150.0030.00516.64
8.0.140.0000.00816.81
8.0.130.0000.00613.23
8.0.120.0040.00416.77
8.0.110.0030.00316.63
8.0.100.0000.00816.84
8.0.90.0070.00016.86
8.0.80.0070.01516.73
8.0.70.0050.00316.71
8.0.60.0000.00716.89
8.0.50.0080.00016.85
8.0.30.0100.00716.93
8.0.20.0100.00917.40
8.0.10.0030.00516.90
8.0.00.0120.00616.78
7.4.330.0050.00015.55
7.4.320.0000.00616.51
7.4.300.0000.00616.44
7.4.290.0000.00816.48
7.4.280.0000.00816.52
7.4.270.0030.00316.55
7.4.260.0030.00313.07
7.4.250.0030.00616.39
7.4.240.0070.00016.44
7.4.230.0030.00316.32
7.4.220.0070.01116.45
7.4.210.0070.00716.48
7.4.200.0030.00316.55
7.4.160.0080.00816.32
7.4.150.0140.00517.40
7.4.140.0120.00917.86
7.4.130.0140.01016.32
7.4.120.0110.01016.39
7.3.330.0050.00013.07
7.3.320.0020.00313.09
7.3.310.0000.00816.19
7.3.300.0060.00016.12
7.3.290.0090.00816.13
7.3.280.0110.00616.13
7.3.270.0100.00717.40
7.3.260.0110.00916.49
7.3.250.0080.01016.21
7.3.240.0100.00716.35
7.1.70.0030.00917.22

preferences:
46.35 ms | 401 KiB | 5 Q