3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['green', '', 'red', '', 'blue']; var_export( array_values(array_filter($array) + $array) );

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.5.30.0090.00817.90
8.5.20.0120.00619.25
8.5.10.0100.00916.82
8.5.00.0070.01419.87
8.4.180.0140.00819.38
8.4.170.0140.00622.50
8.4.160.0130.00823.79
8.4.150.0070.00516.83
8.4.140.0110.01017.45
8.4.130.0150.00717.61
8.4.120.0110.00824.13
8.4.110.0100.00718.56
8.4.100.0120.00617.67
8.4.90.0100.00920.52
8.4.80.0130.00719.02
8.4.70.0100.00920.58
8.4.60.0110.00920.53
8.4.50.0110.00519.65
8.4.40.0330.01517.47
8.4.30.0410.00617.31
8.4.20.0330.01317.62
8.4.10.0200.00317.52
8.3.300.0140.00620.83
8.3.290.0170.00818.42
8.3.280.0150.00618.37
8.3.270.0120.00616.56
8.3.260.0120.00816.73
8.3.250.0100.00816.68
8.3.240.0140.00616.92
8.3.230.0090.00916.58
8.3.220.0040.00518.73
8.3.210.0110.00716.50
8.3.200.0060.00216.34
8.3.190.0110.00716.57
8.3.180.0120.00718.95
8.3.170.0400.00316.14
8.3.160.0380.00916.39
8.3.150.0380.01016.37
8.3.140.0490.00516.55
8.3.130.0310.01216.33
8.3.120.0330.00716.40
8.3.110.0290.01216.36
8.3.100.0380.00716.24
8.3.90.0360.01016.13
8.3.80.0470.00016.31
8.3.70.0340.00716.33
8.3.60.0380.00916.13
8.3.50.0450.00016.41
8.3.40.0260.01317.48
8.3.30.0250.01117.31
8.3.20.0300.00617.21
8.3.10.0230.00917.43
8.3.00.0210.00019.11
8.2.300.0100.01017.96
8.2.290.0100.00617.05
8.2.280.0120.01018.41
8.2.270.0380.00016.21
8.2.260.0260.01316.43
8.2.250.0240.01016.59
8.2.240.0230.01416.34
8.2.230.0270.00816.16
8.2.220.0380.00016.27
8.2.210.0290.00916.15
8.2.200.0270.01216.60
8.2.190.0240.01516.28
8.2.180.0340.00516.47
8.2.170.0440.00017.66
8.2.160.0350.00717.44
8.2.150.0320.00917.54
8.2.140.0350.00717.18
8.2.130.0320.01017.16
8.2.120.0400.00617.50
8.2.110.0200.00317.38
8.2.100.0220.01217.30
8.2.90.0370.00717.14
8.2.80.0390.00017.35
8.2.70.0280.01117.30
8.2.60.0270.01217.50
8.2.50.0330.00617.37
8.2.40.0220.01517.38
8.2.30.0250.01117.42
8.2.20.0350.00417.34
8.2.10.0280.00817.29
8.2.00.0290.00717.49
8.1.340.0150.00617.55
8.1.320.0100.00817.95

preferences:
42.49 ms | 843 KiB | 5 Q