3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { $foo = static function() use (&self) { return get_parent_class(); }; $foo->bindTo(null,'Bar'); print get_class($foo); return $foo(); } } class Bar extends Foo { } print Foo::bar(); print Bar::bar(); //assert(Bar::bar() === 'Bar'); //assert(Bar::baz() === 'Bar');

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.280.0090.04312.38
5.4.270.0100.04112.39
5.4.260.0100.06612.39
5.4.250.0090.04412.38
5.4.240.0080.04412.39
5.4.230.0190.06112.38
5.4.220.0270.06012.38
5.4.210.0090.04712.38
5.4.200.0100.05212.38
5.4.190.0200.08112.37
5.4.180.0160.05112.37
5.4.170.0140.06012.38
5.4.160.0130.05212.38
5.4.150.0100.06212.38
5.4.140.0140.05312.07
5.4.130.0130.05312.05
5.4.120.0140.05112.01
5.4.110.0140.05712.01
5.4.100.0210.07212.01
5.4.90.0130.05312.01
5.4.80.0140.05712.01
5.4.70.0220.07712.00
5.4.60.0140.07212.00
5.4.50.0120.07112.00
5.4.40.0110.07711.99
5.4.30.0150.06211.99
5.4.20.0110.06311.98
5.4.10.0190.06711.99
5.4.00.0130.05911.48
5.3.280.0210.07812.71
5.3.270.0110.06612.73
5.3.260.0160.05412.72
5.3.250.0170.05912.72
5.3.240.0130.06412.72
5.3.230.0130.05812.71
5.3.220.0180.05412.68
5.3.210.0160.05812.68
5.3.200.0190.07312.68
5.3.190.0120.05612.68
5.3.180.0210.07112.67
5.3.170.0290.08712.66
5.3.160.0130.10512.67
5.3.150.0110.06112.67
5.3.140.0140.06112.66
5.3.130.0150.05412.66
5.3.120.0120.05812.66
5.3.110.0120.10012.66
5.3.100.0230.08012.12
5.3.90.0130.08412.08
5.3.80.0140.04412.08
5.3.70.0050.04912.07
5.3.60.0110.04312.06
5.3.50.0090.04512.00
5.3.40.0100.04412.00
5.3.30.0120.04211.95
5.3.20.0090.04411.74
5.3.10.0130.04511.70
5.3.00.0070.04711.69

preferences:
142.47 ms | 1394 KiB | 7 Q