3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Internal declaration namespace Test { class Foo { public static function bar() { return 'static'; } } } // Internal Usage namespace Controller { use Test\Foo; class SomeController { public function view() { echo Foo::bar(); } } } // Some extending application class MyFoo extends Foo { public static function bar() { return 'can\'t make internal methods use this.'; } } $c = new Controller\SomeController; $c->view();

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.270.1670.03719.32
5.4.260.2000.02719.21
5.4.250.1870.03719.05
5.4.240.2000.03718.99
5.4.230.2130.03719.05
5.4.220.2000.04019.08
5.4.210.1930.04019.09
5.4.200.1870.03318.94
5.4.190.1770.03318.83
5.4.180.1700.04018.88
5.4.170.1770.04319.19
5.4.160.2070.03319.22
5.4.150.2230.04319.20
5.4.140.2070.03716.39
5.4.130.1800.05716.70
5.4.120.1770.03716.44
5.4.110.1770.03716.55
5.4.100.1800.04016.41
5.4.90.0100.02716.42
5.4.80.0030.03716.49
5.4.70.1030.03316.41
5.4.60.1770.03716.56
5.4.50.2000.04016.52
5.4.40.2030.04316.52
5.4.30.1900.04016.54
5.4.20.1930.03716.27
5.4.10.2230.04316.16
5.4.00.2030.04016.10
5.3.280.1330.04314.52
5.3.270.0030.07314.66
5.3.260.0030.08014.61
5.3.250.1300.05714.77
5.3.240.1770.03714.66
5.3.230.2030.04014.57
5.3.220.1700.03014.57
5.3.210.2030.03714.50
5.3.200.2070.03714.62
5.3.190.2070.04014.57
5.3.180.1770.03314.64
5.3.170.1730.03714.54
5.3.160.2030.04314.54
5.3.150.0970.05314.48
5.3.140.0200.06014.57
5.3.130.0070.04714.77
5.3.120.0300.04714.46
5.3.110.1970.04314.54
5.3.100.2070.04014.02
5.3.90.2030.03713.93
5.3.80.1830.03313.95
5.3.70.2100.04013.93
5.3.60.1900.03014.09
5.3.50.1870.03713.97
5.3.40.2000.03314.03
5.3.30.0330.03714.02
5.3.20.0300.04313.91
5.3.10.0100.04013.88
5.3.00.0230.03713.57

preferences:
140.73 ms | 1386 KiB | 7 Q