3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['','',5,0,'hey']; print_r( array_filter($a), function($i) { return $i != ''; } );

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.0130.01018.56
8.3.50.0190.00016.37
8.3.40.0140.00018.97
8.3.30.0060.01218.56
8.3.20.0070.00318.95
8.3.10.0080.00021.91
8.3.00.0040.00423.53
8.2.180.0110.01118.29
8.2.170.0120.00322.96
8.2.160.0070.00719.29
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00421.07
8.2.120.0000.00726.35
8.2.110.0070.00321.18
8.2.100.0090.00317.89
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0000.00917.80
8.2.50.0000.00818.10
8.2.40.0000.00819.30
8.2.30.0000.00719.24
8.2.20.0050.00517.93
8.2.10.0000.00718.00
8.2.00.0040.00419.46
8.1.280.0030.01025.92
8.1.270.0050.00322.06
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00722.60
8.1.230.0070.00418.87
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0050.00517.25
8.1.180.0030.00518.10
8.1.170.0080.00018.82
8.1.160.0000.00718.88
8.1.150.0000.00718.79
8.1.140.0000.00717.65
8.1.130.0000.00718.92
8.1.120.0030.00517.49
8.1.110.0070.00317.36
8.1.100.0040.00417.35
8.1.90.0040.00417.53
8.1.80.0030.00617.49
8.1.70.0030.00617.35
8.1.60.0060.00317.48
8.1.50.0040.00417.54
8.1.40.0040.00417.52
8.1.30.0050.00317.67
8.1.20.0040.00417.61
8.1.10.0000.00817.45
8.1.00.0000.00817.49
8.0.300.0080.00018.84
8.0.290.0040.00416.58
8.0.280.0030.00318.38
8.0.270.0000.00817.19
8.0.260.0030.00717.08
8.0.250.0070.00016.92
8.0.240.0000.00716.84
8.0.230.0040.00416.95
8.0.220.0070.00016.73
8.0.210.0070.00016.77
8.0.200.0000.00816.90
8.0.190.0000.00716.99
8.0.180.0000.00817.00
8.0.170.0090.00017.01
8.0.160.0040.00416.86
8.0.150.0080.00016.82
8.0.140.0030.00316.91
8.0.130.0000.00613.42
8.0.120.0070.00016.95
8.0.110.0060.00316.80
8.0.100.0040.00416.85
8.0.90.0040.00416.75
8.0.80.0060.00716.89
8.0.70.0050.00216.89
8.0.60.0040.00416.99
8.0.50.0040.00416.77
8.0.30.0130.00517.14
8.0.20.0100.00917.40
8.0.10.0040.00416.97
8.0.00.0100.00716.60
7.4.330.0040.00015.55
7.4.320.0060.00016.52
7.4.300.0000.00616.59
7.4.290.0070.00016.44
7.4.280.0040.00416.60
7.4.270.0030.00316.52
7.4.260.0000.00716.38
7.4.250.0040.00416.45
7.4.240.0070.00016.44
7.4.230.0070.00016.60
7.4.220.0040.00416.56
7.4.210.0060.00816.65
7.4.200.0040.00416.49
7.4.160.0100.00816.44
7.4.140.0130.00717.86
7.4.130.0170.00716.46
7.4.120.0090.01116.51
7.4.110.0070.01016.46
7.4.100.0100.00716.63
7.4.90.0070.01116.68
7.4.80.0030.01319.39
7.4.70.0140.00316.40
7.4.60.0160.00016.53
7.4.50.0120.00316.63
7.4.40.0060.01516.59
7.4.00.0120.00314.95
7.3.330.0000.00513.27
7.3.320.0000.00513.29
7.3.310.0070.00016.19
7.3.300.0030.00316.11
7.3.290.0030.00316.24
7.3.280.0060.00816.28
7.3.260.0120.00616.53
7.3.240.0060.01416.38
7.3.230.0030.01316.30
7.3.210.0060.01016.57
7.3.200.0060.01016.31
7.3.190.0030.01416.32
7.3.180.0130.00316.30
7.3.170.0030.01416.63
7.3.160.0090.01316.42
7.2.330.0180.00016.34
7.2.320.0140.00316.57
7.2.310.0160.00616.51
7.2.300.0030.01316.28
7.2.290.0080.01116.33
7.2.70.0570.01014.75
7.2.60.0550.00914.59
7.2.50.0590.00614.59
7.2.40.0560.00714.89
7.2.30.0740.00914.86
7.2.20.0540.00714.81
7.2.10.1150.01714.91
7.2.00.0840.00714.71
7.1.200.0030.01015.69
7.1.170.0660.00313.61
7.1.160.0780.00313.67
7.1.150.0620.00313.61
7.1.140.0520.00713.89
7.1.130.0620.01013.96
7.1.120.0760.00613.71
7.1.110.0620.00713.71
7.1.100.0930.00713.61
7.1.90.0800.00713.73
7.1.80.0640.00613.73
7.1.70.0570.00913.90
7.1.60.0800.01031.67
7.1.50.0800.00731.86
7.1.40.0740.01031.72
7.1.30.0740.01031.91
7.1.20.0880.00331.80
7.1.10.0580.00613.73
7.1.00.0510.01013.83

preferences:
58.3 ms | 401 KiB | 5 Q