3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { use Some; function bar () { echo "this is bar" . PHP_EOL; } } trait Some { abstract function bar(); function useBar() { echo "using parent bar function" . PHP_EOL; $this->bar(); } } (new Foo())->useBar();

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.3.60.0160.00618.56
8.3.50.0130.00720.34
8.3.40.0040.01120.27
8.3.30.0070.00718.52
8.3.20.0070.00024.18
8.3.10.0090.00024.66
8.3.00.0070.00026.16
8.2.180.0120.00325.92
8.2.170.0140.00419.01
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00720.66
8.2.110.0100.00320.57
8.2.100.0060.00320.40
8.1.280.0170.00725.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00318.48
8.1.230.0030.00618.41
8.1.100.0050.00317.32

preferences:
29.54 ms | 400 KiB | 5 Q