3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startVal = new Command(); $middlwares = []; $middlewares[] = func1(...); if ($isAdmin) { $middlewares[] = func2(...); } if ($isTuesday) { $middlewares[] = fizbin(...); } foreach ($middlewares as $m) { $startVal = $m($startVal); } $result = $startVal;

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.0110.00619.57
8.5.20.0090.00820.08
8.5.10.0130.00616.54
8.5.00.0100.01020.02
8.4.180.0140.00819.64
8.4.170.0140.00623.88
8.4.160.0130.00825.38
8.4.150.0020.00014.05
8.4.140.0160.00617.47
8.4.130.0130.00718.02
8.4.120.0030.00624.13
8.4.110.0100.01021.54
8.4.100.0110.01017.92
8.4.90.0110.00917.69
8.4.80.0100.01017.93
8.4.70.0420.01118.18
8.4.60.0410.01018.18
8.4.50.0420.00818.18
8.4.40.0340.00418.18
8.4.30.0280.00518.18
8.4.20.0270.00618.18
8.4.10.0250.00718.18
8.3.300.0170.00620.72
8.3.290.0120.00922.60
8.3.280.0060.01418.54
8.3.270.0150.00516.63
8.3.260.0140.00517.00
8.3.250.0120.00718.75
8.3.240.0140.00617.10
8.3.230.0090.00716.51
8.3.220.0070.00116.99
8.3.210.0390.00818.18
8.3.200.0260.00618.18
8.3.190.0160.00518.18
8.3.180.0200.00718.18
8.3.170.0230.00318.18
8.3.160.0390.00418.18
8.3.150.0340.00918.18
8.3.140.0420.01018.18
8.3.130.0240.00818.18
8.3.120.0190.00518.18
8.3.110.0290.01018.18
8.3.100.0400.00918.18
8.3.90.0370.00818.18
8.3.80.0200.00318.18
8.3.70.0250.00418.18
8.3.60.0280.00718.18
8.3.50.0180.00518.18
8.3.40.0450.00818.18
8.3.30.0310.00518.18
8.3.20.0170.00318.18
8.3.10.0160.00218.18
8.3.00.0360.00918.18
8.2.300.0110.00818.75
8.2.290.0120.00718.95
8.2.280.0310.01018.18
8.2.270.0360.00718.18
8.2.260.0340.00918.18
8.2.250.0240.00618.18
8.2.240.0160.00318.18
8.2.230.0160.00318.18
8.2.220.0170.00418.18
8.2.210.0150.01018.18
8.2.200.0350.00618.18
8.2.190.0240.00218.18
8.2.180.0300.01118.18
8.2.170.0370.00618.18
8.2.160.0300.00818.18
8.2.150.0310.01018.18
8.2.140.0460.00618.18
8.2.130.0340.01118.18
8.2.120.0350.00918.18
8.2.110.0390.00718.18
8.2.100.0300.00818.18
8.2.90.0340.00718.18
8.2.80.0380.00518.18
8.2.70.0390.00518.18
8.2.60.0350.00718.18
8.2.50.0380.00718.18
8.2.40.0350.00918.18
8.2.30.0260.00418.18
8.2.20.0130.00618.18
8.2.10.0130.00618.18
8.2.00.0140.00418.18
8.1.340.0160.00421.76

preferences:
46.41 ms | 403 KiB | 5 Q