3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = 1; $obj = new class($foo = $bar) { public function __construct($test) { var_dump($test); } }

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)
7.0.20.0200.05320.30
7.0.10.0000.04720.13
7.0.00.0070.09020.00
5.6.170.0170.07020.52
5.6.160.0100.07020.44
5.6.150.0100.04018.28
5.6.140.0100.07718.24
5.6.130.0100.04318.28
5.6.120.0100.08021.00
5.6.110.0030.04020.98
5.6.100.0130.08020.88
5.6.90.0100.03321.03
5.6.80.0100.07720.48
5.5.310.0330.08020.41
5.5.300.0070.08017.95
5.5.290.0030.08717.95
5.5.280.0070.07020.86
5.5.270.0100.03720.86
5.5.260.0070.06720.79
5.5.250.0070.03720.68
5.5.240.0130.05720.25

preferences:
142.1 ms | 1394 KiB | 7 Q