3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php class Foo { public const BAR = ''; public $bar; public function bar() {} } var_export((new ReflectionClass('Foo'))->getDocComment('foo'));

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.2.30.0110.01019.67
7.2.20.0110.01119.71
7.2.10.0120.01419.61
7.2.00.0080.01619.61
7.1.150.0060.01318.32
7.1.140.0080.01018.61
7.1.130.0050.01318.49
7.1.120.0100.00918.49
7.1.110.0050.01317.76
7.1.100.0080.01017.88
7.1.90.0070.01317.47
7.1.80.0110.00917.65
7.1.70.0080.01216.92
7.1.60.0220.01434.95
7.1.50.0290.01634.48
7.1.40.0310.01534.21
7.1.30.0270.02334.24
7.1.20.0270.01134.34
7.1.10.0090.01016.25
7.1.00.0080.01216.63

preferences:
143.36 ms | 939 KiB | 8 Q