3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); function f(float $f){} f(1); // int->float: legal function i(int $i){} i(1.0); // float->int: illegal, even if the float happens to be a whole number.

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.0070.00919.72
8.5.20.0100.01020.18
8.5.10.0080.00216.80
8.5.00.0150.01519.94
8.4.180.0110.01119.75
8.4.170.0110.01023.77
8.4.160.0170.00623.79
8.4.150.0140.00816.72
8.4.140.0160.00517.80
8.4.130.0110.00917.84
8.4.120.0050.00422.38
8.4.110.0070.00318.79
8.4.100.0110.00517.88
8.4.90.0150.00617.86
8.4.80.0140.00617.63
8.4.70.0150.00718.14
8.4.60.0400.01218.14
8.4.50.0290.00818.14
8.4.40.0230.00818.14
8.4.30.0240.00418.14
8.4.20.0290.00518.14
8.4.10.0200.00518.14
8.3.300.0090.01120.82
8.3.290.0110.00920.77
8.3.280.0110.01418.48
8.3.270.0110.01116.88
8.3.260.0050.00717.20
8.3.250.0140.00518.71
8.3.240.0100.01016.44
8.3.230.0120.00916.42
8.3.220.0130.00616.50
8.3.210.0200.00318.14
8.3.200.0210.00318.14
8.3.190.0180.00718.14
8.3.180.0170.00618.14
8.3.170.0200.00418.14
8.3.160.0190.00618.14
8.3.150.0190.00618.14
8.3.140.0190.00718.14
8.3.130.0190.00318.14
8.3.120.0200.00318.14
8.3.110.0180.00418.14
8.3.100.0220.00418.14
8.3.90.0210.00518.14
8.3.80.0220.00318.14
8.3.70.0160.00818.14
8.3.60.0200.00418.14
8.3.50.0220.00718.14
8.3.40.0300.00418.14
8.3.30.0260.00118.14
8.3.20.0180.00618.14
8.3.10.0180.00318.14
8.3.00.0120.00218.14
8.2.300.0130.00718.12
8.2.290.0060.00318.99
8.2.280.0120.00818.14
8.2.270.0170.00818.14
8.2.260.0230.00718.14
8.2.250.0170.00818.14
8.2.240.0210.00518.14
8.2.230.0210.00418.14
8.2.220.0170.00318.14
8.2.210.0200.00518.14
8.2.200.0150.00518.14
8.2.190.0160.00618.14
8.2.180.0150.00518.14
8.2.170.0170.00518.14
8.2.160.0170.00618.14
8.2.150.0180.00318.14
8.2.140.0230.00618.14
8.2.130.0180.00618.14
8.2.120.0250.00818.14
8.2.110.0170.00418.14
8.2.100.0190.00418.14
8.2.90.0150.00618.14
8.2.80.0150.00618.14
8.2.70.0190.00318.14
8.2.60.0240.00418.14
8.2.50.0220.00518.14
8.2.40.0190.00418.14
8.2.30.0250.00418.14
8.2.20.0250.00518.14
8.2.10.0170.00618.14
8.2.00.0190.00518.14
8.1.340.0130.00721.36
7.4.330.0330.00518.14

preferences:
42.98 ms | 859 KiB | 5 Q