3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Abc { public const TICKET_SEND_AUTO_RESPONSE = 0; public function test() { $s = <<<XML <sendautoresponder>{self::TICKET_SEND_AUTO_RESPONSE}</sendautoresponder> XML; return $s; } } $t = new Abc(); var_dump($t->test());
based on i8tMd

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0810.01015.02
7.2.00.0030.01019.36
7.1.200.0040.00415.63
7.1.100.0040.00417.97
7.1.70.0090.00217.59
7.1.60.0070.00717.59
7.1.50.0110.00417.59
7.1.40.0040.00817.59
7.1.30.0080.00817.59
7.1.20.0050.01117.59
7.1.10.0060.00617.59
7.1.00.0050.00317.59
7.0.200.0120.00017.59
7.0.190.0070.00517.59
7.0.180.0120.00017.59
7.0.170.0070.00417.59
7.0.160.0050.00717.59
7.0.150.0050.01017.59
7.0.140.0060.00617.59
7.0.130.0000.01317.59
7.0.120.0040.00817.59
7.0.110.0100.00517.59
7.0.100.0000.01617.59
7.0.90.0160.00017.59
7.0.80.0050.01017.59
7.0.70.0090.00317.59
7.0.60.0140.00317.59
7.0.50.0120.00017.59
7.0.40.0000.01217.59
7.0.30.0070.00517.59
7.0.20.0090.00317.59
7.0.10.0060.00617.59
7.0.00.0080.00417.59
hhvm-3.15.40.0060.00017.59
5.6.300.0140.03620.92
5.6.290.0060.05220.74
5.6.280.0110.03721.00
5.6.270.0070.07721.03
5.6.260.0090.04120.91
5.6.250.0160.07720.85
5.6.240.0040.06020.83
5.6.230.0080.05020.91
5.6.220.0090.04420.85
5.6.210.0140.07221.04
5.6.200.0110.04620.93
5.6.190.0100.04521.03
5.6.180.0030.04520.89
5.6.170.0100.04320.92
5.6.160.0040.04420.80
5.6.150.0120.05620.98
5.6.140.0030.08420.86
5.6.130.0130.04120.91
5.6.120.0100.06620.98
5.6.110.0190.07220.98
5.6.100.0140.08320.92
5.6.90.0180.04820.91
5.6.80.0130.03720.37
5.6.70.0070.04220.39
5.6.60.0060.04220.36
5.6.50.0110.06020.16
5.6.40.0070.06220.18
5.6.30.0100.04020.31
5.6.20.0070.04720.37
5.6.10.0040.04620.39
5.6.00.0100.07920.14