3v4l.org

run code in 300+ PHP versions simultaneously
<?php class config { public static $Image="/images"; } class layout { $name = "NAME!"; public function writeLogo() { $text = <<<ABC <img class="Logo" title="My Logo" alt="Logo" src="{config::$Image}/Logo.gif" /> <img class="Logo" title="My Logo" alt="Logo" src="{$this->name}/Logo.gif" /> ABC; echo($text); } } $sample = new layout(); $sample->writeLogo(); ?>

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)
5.4.110.0270.04016.61
5.4.100.0270.04016.45
5.4.90.0200.03716.61
5.4.80.0270.05316.58
5.4.70.0200.05316.55
5.4.60.0300.03316.44
5.4.50.0270.03716.32
5.4.40.0200.05016.53
5.4.30.0270.06716.34
5.4.20.0170.07016.53
5.4.10.0270.03716.55
5.4.00.0300.03315.94
5.3.210.0270.03314.63
5.3.200.0200.04314.55
5.3.190.0330.04314.79
5.3.180.0200.04014.46
5.3.170.0400.06714.73
5.3.160.0300.06014.78
5.3.150.0270.07014.46
5.3.140.0300.04014.60
5.3.130.0230.04314.51
5.3.120.0230.05714.47
5.3.110.0270.03314.59
5.3.100.0300.07014.06
5.3.90.0300.04313.99
5.3.80.0270.06313.91
5.3.70.0330.06713.91
5.3.60.0230.04313.91
5.3.50.0200.03713.87
5.3.40.0200.04013.85
5.3.30.0200.04013.90
5.3.20.0130.04713.63
5.3.10.0330.06313.60
5.3.00.0230.03313.56

preferences:
141.43 ms | 1386 KiB | 7 Q