3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1=array('a','b','c',''); print_r(array_filter($a1));

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.20.0170.00319.76
8.4.10.0060.00321.79
8.3.150.0090.00919.06
8.3.140.0030.00618.39
8.3.130.0100.01016.36
8.3.120.0090.00620.62
8.3.110.0040.00420.94
8.3.100.0120.00624.06
8.3.90.0080.00026.77
8.3.80.0000.00918.18
8.3.70.0170.00316.38
8.3.60.0140.00316.38
8.3.50.0040.01116.59
8.3.40.0040.01122.09
8.3.30.0140.00018.44
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0030.00626.16
8.2.270.0090.00917.17
8.2.260.0040.00418.77
8.2.250.0070.00416.49
8.2.240.0000.01918.91
8.2.230.0080.00022.58
8.2.220.0050.00537.54
8.2.210.0080.00026.77
8.2.200.0040.00816.38
8.2.190.0140.00016.58
8.2.180.0120.00416.32
8.2.170.0070.00718.87
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.70
8.2.110.0060.00319.14
8.2.100.0000.01217.66
8.2.90.0090.00017.63
8.2.80.0040.00417.97
8.2.70.0080.00017.80
8.2.60.0130.00517.13
8.2.50.0120.00617.18
8.2.40.0130.00317.31
8.2.30.0100.00217.31
8.2.20.0080.00817.18
8.2.10.0140.00317.25
8.2.00.0140.00417.25
8.1.310.0150.00016.81
8.1.300.0120.00318.40
8.1.290.0040.00430.84
8.1.280.0110.01125.92
8.1.270.0000.00822.04
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0090.00317.35
8.1.230.0130.00017.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0030.01016.86
8.1.180.0100.00716.68
8.1.170.0100.00716.92
8.1.160.0140.00317.00
8.1.150.0150.00117.06
8.1.140.0110.00617.06
8.1.130.0100.00917.00
8.1.120.0140.00317.25
8.1.110.0160.00217.06
8.1.100.0140.00416.75
8.1.90.0140.00317.22
8.1.80.0160.00217.06
8.1.70.0040.01217.06
8.1.60.0060.01217.19
8.1.50.0130.00517.11
8.1.40.0210.00117.19
8.1.30.0160.00317.19
8.1.20.0140.00517.24
8.1.10.0140.00717.00
8.1.00.0120.00517.12
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0130.00316.52
8.0.270.0140.00316.57
8.0.260.0120.00516.52
8.0.250.0120.00516.52
8.0.240.0150.00216.52
8.0.230.0150.00216.57
8.0.220.0130.00416.52
8.0.210.0070.00916.52
8.0.200.0150.00116.52
8.0.190.0180.00216.52
8.0.180.0060.01216.57
8.0.170.0090.00716.55
8.0.160.0130.00416.52
8.0.150.0140.00316.52
8.0.140.0100.00616.52
8.0.130.0140.00416.52
8.0.120.0130.00416.57
8.0.110.0140.00216.52
8.0.100.0080.00816.52
8.0.90.0120.00616.52
8.0.80.0090.01116.52
8.0.70.0160.00216.57
8.0.60.0110.00516.57
8.0.50.0100.00516.52
8.0.30.0120.00416.52
8.0.20.0130.00416.63
8.0.10.0120.00416.52

preferences:
46.57 ms | 403 KiB | 5 Q