3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() { echo isset($this) and ($this instanceof __CLASS__) ? 'Instance' : 'Class', "\n"; } } // OK: Foo::bar(); class Baz { function test() { Foo::bar(); } } // Take care: $baz = new Baz; $baz->test();

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.190.0140.04712.40
5.4.180.0160.04812.39
5.4.170.0220.04212.41
5.4.160.0160.05012.40
5.4.150.0210.04212.39
5.4.140.0160.04412.09
5.4.130.0160.04512.06
5.4.120.0160.04612.03
5.4.110.0130.05112.02
5.4.100.0160.05212.03
5.4.90.0210.05112.02
5.4.80.0180.04512.02
5.4.70.0220.04312.02
5.4.60.0160.04812.02
5.4.50.0160.04812.02
5.4.40.0220.03812.01
5.4.30.0120.04712.01
5.4.20.0130.04612.00
5.4.10.0180.04412.01
5.4.00.0160.04211.50
5.3.270.0140.05012.72
5.3.260.0200.04212.72
5.3.250.0240.03712.72
5.3.240.0120.04912.72
5.3.230.0150.04812.71
5.3.220.0170.04512.68
5.3.210.0160.04612.68
5.3.200.0100.05612.68
5.3.190.0200.04412.68
5.3.180.0190.04212.68
5.3.170.0170.04512.67
5.3.160.0180.04612.68
5.3.150.0200.04312.67
5.3.140.0180.04312.66
5.3.130.0140.04712.66
5.3.120.0220.04012.66
5.3.110.0180.04412.66
5.3.100.0160.04812.12
5.3.90.0140.04612.10
5.3.80.0140.04612.09
5.3.70.0130.04712.09
5.3.60.0120.04912.07
5.3.50.0130.04712.02
5.3.40.0120.04912.02
5.3.30.0140.04411.99
5.3.20.0140.04411.77
5.3.10.0150.04111.73
5.3.00.0180.04111.71

preferences:
139.22 ms | 1386 KiB | 7 Q