3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formats = [ 'a', '', '0']; var_dump(array_filter($formats)); var_dump(array_filter($formats, fn ($value) => $value !== ''));

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.10.0160.00519.74
8.5.00.0130.00821.49
8.4.150.0020.00014.05
8.4.140.0130.00717.43
8.4.130.0110.01118.64
8.4.120.0060.01418.84
8.4.110.0110.00919.04
8.4.100.0090.01217.64
8.4.90.0130.00720.51
8.4.80.0110.01020.68
8.4.70.0100.00618.86
8.4.60.0100.00920.58
8.4.50.0110.00818.71
8.4.40.0030.00617.31
8.4.30.0150.00320.42
8.4.20.0070.01419.50
8.4.10.0120.00619.46
8.3.280.0140.00918.38
8.3.270.0120.00816.57
8.3.260.0100.00816.81
8.3.250.0110.00816.31
8.3.240.0120.00716.76
8.3.230.0110.01016.38
8.3.220.0100.00719.04
8.3.210.0090.00916.57
8.3.200.0070.00316.72
8.3.190.0130.00516.79
8.3.180.0100.00819.01
8.3.170.0090.01017.05
8.3.160.0110.00716.62
8.3.150.0110.00417.20
8.3.140.0090.01216.80
8.3.130.0080.00016.67
8.3.120.0000.00920.67
8.3.110.0340.01016.46
8.3.100.0440.00316.08
8.3.90.0340.01216.38
8.3.80.0270.01916.25
8.3.70.0350.01016.38
8.3.60.0350.00616.47
8.3.50.0240.00616.38
8.3.40.0160.01017.13
8.3.30.0310.00617.25
8.3.20.0270.01017.13
8.3.10.0300.00717.25
8.3.00.0170.00917.38
8.2.290.0090.01017.22
8.2.280.0100.00918.14
8.2.270.0120.00616.40
8.2.260.0040.01416.57
8.2.250.0080.00018.46
8.2.240.0040.00417.15
8.2.230.0250.01416.13
8.2.220.0450.00416.32
8.2.210.0300.00616.39
8.2.200.0340.00616.50
8.2.190.0320.00916.50
8.2.180.0250.01316.28
8.2.170.0390.00717.50
8.2.160.0360.00717.50
8.2.150.0340.01117.63
8.2.140.0300.01017.50
8.2.130.0390.00317.25
8.2.120.0400.00317.47
8.2.110.0400.00317.35
8.2.100.0420.00317.49
8.2.90.0370.00917.50
8.2.80.0360.00317.38
8.2.70.0360.00617.38
8.2.60.0370.00717.38
8.2.50.0430.00017.24
8.2.40.0340.00717.61
8.2.30.0310.00917.48
8.2.20.0380.00317.38
8.2.10.0270.01017.38
8.2.00.0250.01417.25
8.1.330.0090.00917.87
8.1.320.0140.00716.08
8.1.310.0070.01115.99
8.1.300.0040.00418.09
8.1.290.0310.00316.00
8.1.280.0330.00315.74
8.1.270.0230.00717.28
8.1.260.0300.01017.13
8.1.250.0390.00617.36
8.1.240.0250.01417.00
8.1.230.0310.00816.88
8.1.220.0150.00417.13
8.1.210.0260.01117.00
8.1.200.0290.00717.13
8.1.190.0290.01016.86
8.1.180.0360.00416.85
8.1.170.0330.00717.13
8.1.160.0300.00417.22
8.1.150.0260.00717.21
8.1.140.0270.00017.00
8.1.130.0220.00616.97
8.1.120.0270.00517.00
8.1.110.0180.00317.11
8.1.100.0140.00417.35
8.1.90.0430.00417.25
8.1.80.0180.01117.10
8.1.70.0290.01017.13
8.1.60.0370.00417.35
8.1.50.0420.00017.11
8.1.40.0320.01117.38
8.1.30.0420.00017.35
8.1.20.0380.00917.13
8.1.10.0300.01717.00
8.1.00.0290.00416.99

preferences:
32.19 ms | 403 KiB | 5 Q