3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static var11 = 'foo_var'; public function printItem($string) { echo 'Foo: ' . $string . PHP_EOL; } public function printPHP() { echo 'PHP is great.' . PHP_EOL; } } class bar extends foo { public static var11 = 'bar_var'; public function printItem($string) { echo 'Bar: ' . $string . PHP_EOL; } } $foo = new foo(); $bar = new bar(); $bar->printItem('baz');

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.140.0210.03612.05
5.4.130.0160.04412.04
5.4.120.0120.04612.00
5.4.110.0140.04111.99
5.4.100.0130.04411.99
5.4.90.0150.04511.99
5.4.80.0210.06911.99
5.4.70.0140.04311.99
5.4.60.0140.04311.99
5.4.50.0140.05811.99
5.4.40.0150.04211.98
5.4.30.0310.05711.97
5.4.20.0130.04311.97
5.4.10.0180.06911.97
5.4.00.0150.04111.46
5.3.240.0140.04612.72
5.3.230.0160.04812.71
5.3.220.0130.04712.68
5.3.210.0210.05612.68
5.3.200.0120.04712.68
5.3.190.0150.04612.67
5.3.180.0150.04512.67
5.3.170.0150.04512.67
5.3.160.0160.04412.67
5.3.150.0180.04412.67
5.3.140.0270.07912.66
5.3.130.0160.04512.66
5.3.120.0170.04212.66
5.3.110.0100.04912.66
5.3.100.0200.05412.12
5.3.90.0140.04312.09
5.3.80.0200.03912.07
5.3.70.0210.06812.07
5.3.60.0220.05212.06
5.3.50.0160.04312.00
5.3.40.0140.04612.00
5.3.30.0190.06911.96
5.3.20.0110.04711.74
5.3.10.0190.03811.70
5.3.00.0260.07511.68

preferences:
136.09 ms | 1386 KiB | 7 Q