3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo (string $x) { } try { foo(); } catch (\TypeError $t) { echo 'Oops! ' . $t->getMessage(); }

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.0070.00218.62
8.5.00.0110.00717.37
8.4.160.0100.01119.75
8.4.150.0140.00919.68
8.4.140.0140.01219.61
8.4.90.0040.00519.77
8.3.290.0130.00718.38
8.3.280.0110.01020.21
8.3.270.0100.00818.61
8.3.180.0060.00318.31
8.3.50.0030.00717.37
8.2.300.0110.00918.22
8.1.340.0120.00817.70
7.4.320.0100.00717.37

preferences:
29.44 ms | 403 KiB | 5 Q