3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(): void { return "test\n"; } // This currently gives an error, but you propose that it // would change to set $val to null? $val = test(); var_dump($val);

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.4.70.0450.00818.18
8.4.60.0510.00518.18
8.4.50.0450.00818.18
8.4.40.0280.00518.18
8.4.30.0230.00518.18
8.4.20.0220.00218.18
8.4.10.0360.00218.18
8.3.210.0350.00718.18
8.3.200.0180.00518.18
8.3.190.0260.00418.18
8.3.180.0200.00318.18
8.3.170.0270.00518.18
8.3.160.0170.00718.18
8.3.150.0200.00318.18
8.3.140.0220.00218.18
8.3.130.0180.00218.18
8.3.120.0250.00418.18
8.3.110.0330.00618.18
8.3.100.0430.00818.18
8.3.90.0460.00618.18
8.3.80.0420.00718.18
8.3.70.0450.00418.18
8.3.60.0290.00218.18
8.3.50.0430.00818.18
8.3.40.0340.01018.18
8.3.30.0240.00518.18
8.3.20.0120.00718.18
8.3.10.0280.01118.18
8.3.00.0170.00518.18
8.2.280.0310.00918.18
8.2.270.0320.00918.18
8.2.260.0310.01018.18
8.2.250.0340.00818.18
8.2.240.0340.00818.18
8.2.230.0340.00918.18
8.2.220.0320.00718.18
8.2.210.0320.01018.18
8.2.200.0330.00818.18
8.2.190.0340.00918.18
8.2.180.0330.00618.18
8.2.170.0390.00918.18
8.2.160.0400.00518.18
8.2.150.0440.00918.18
8.2.140.0400.00518.18
8.2.130.0350.00918.18
8.2.120.0330.00618.18
8.2.110.0270.00518.18
8.2.100.0390.00818.18
8.2.90.0380.00718.18
8.2.80.0230.00618.18
8.2.70.0220.00518.18
8.2.60.0320.00818.18
8.2.50.0380.00618.18
8.2.40.0320.00518.18
8.2.30.0360.00618.18
8.2.20.0370.00618.18
8.2.10.0310.00618.18
8.2.00.0230.00318.18

preferences:
131.89 ms | 969 KiB | 7 Q