3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello '.(new class('world') { public function __construct($hello) { $this->hello = $hello; } })->hello; $test = new class extends \Exception {}; var_dump(instanceof $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.00.0130.08020.25
5.6.160.0100.05720.56
5.6.150.0130.04718.19
5.6.140.0030.05018.14
5.6.130.0100.06718.23
5.6.120.0100.08321.11
5.6.110.0030.04320.89
5.6.100.0100.08721.10
5.6.90.0130.08321.09
5.6.80.0070.08020.41
5.5.300.0000.05318.08
5.5.290.0100.04018.10
5.5.280.0030.06320.64
5.5.270.0100.08320.95
5.5.260.0100.04720.86
5.5.250.0070.07720.57
5.5.240.0170.04320.23

preferences:
140.79 ms | 1394 KiB | 7 Q