3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function hello() { echo "Hello !"; } } class Bar { public $apple = null; public function __construct() { $this->apple = new Foo(); } } $foo = new Bar(); {$foo->apple}::hello();

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.200.0200.07319.09
5.4.190.0200.04019.20
5.4.180.0130.04018.82
5.4.170.0130.04019.05
5.4.160.0170.07318.85
5.4.150.0130.03719.23
5.4.140.0200.03016.54
5.4.130.0170.03716.55
5.4.120.0170.03716.36
5.4.110.0230.02716.61
5.4.100.0170.06016.63
5.4.90.0100.04016.42
5.4.80.0130.03716.51
5.4.70.0230.02716.31
5.4.60.0170.03316.38
5.4.50.0200.04316.22
5.4.40.0200.04716.43
5.4.30.0130.03716.18
5.4.20.0200.04316.34
5.4.10.0170.03316.34
5.4.00.0170.03315.93
5.3.270.0200.04314.69
5.3.260.0230.07314.66
5.3.250.0170.04014.58
5.3.240.0170.03714.50
5.3.230.0170.04014.62
5.3.220.0270.06714.54
5.3.210.0130.04314.54
5.3.200.0130.04714.69
5.3.190.0130.04014.49
5.3.180.0200.05014.54
5.3.170.0130.04014.62
5.3.160.0130.03714.55
5.3.150.0170.05714.47
5.3.140.0170.04714.57
5.3.130.0200.05714.54
5.3.120.0200.07014.77
5.3.110.0170.05314.52
5.3.100.0170.03714.27
5.3.90.0200.04314.14
5.3.80.0070.06014.11
5.3.70.0200.06313.92
5.3.60.0070.04713.92
5.3.50.0170.04313.87
5.3.40.0200.07013.95
5.3.30.0130.06013.84
5.3.20.0170.04713.70
5.3.10.0170.04313.68
5.3.00.0170.03313.76

preferences:
136.52 ms | 1394 KiB | 7 Q