3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(stdClass &$obj) { var_dump($obj); $obj = 'lol'; } $o = new stdClass; $o->prop = 'foo'; test($o); var_dump($o);

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.10.0210.00818.19
8.3.140.0120.00618.14
8.3.130.0140.00518.13
8.3.50.0090.00918.32
8.2.260.0100.01018.15
8.2.250.0140.00718.22
7.4.330.0190.00716.25

preferences:
20.26 ms | 403 KiB | 5 Q