3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = 1; $obj = new class($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.0300.06320.12
7.0.10.0000.04720.18
7.0.00.0100.05320.02
5.6.170.0230.04320.57
5.6.160.0070.08320.47
5.6.150.0100.07718.20
5.6.140.0130.07018.15
5.6.130.0170.07318.17
5.6.120.0130.07721.14
5.6.110.0100.08021.11
5.6.100.0070.05720.99
5.6.90.0070.06321.00
5.6.80.0170.06320.39
5.5.310.0300.07020.30
5.5.300.0000.04017.93
5.5.290.0000.08318.03
5.5.280.0030.05320.87
5.5.270.0100.04720.86
5.5.260.0030.06720.84
5.5.250.0070.08020.77
5.5.240.0300.06020.25

preferences:
136.83 ms | 1398 KiB | 7 Q