3v4l.org

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

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.290.1830.04318.95
5.4.280.2000.03718.95
5.4.270.1900.03319.06
5.4.260.1870.04719.16
5.4.250.1830.03719.09
5.4.240.2000.05018.99
5.4.230.2130.03719.12
5.4.220.2000.03719.08
5.4.210.1970.04019.05
5.4.200.1870.03719.12
5.4.190.1930.03019.07
5.4.180.2000.04019.05
5.4.170.1830.04019.21
5.4.160.1870.03719.22
5.4.150.1830.04019.19
5.4.140.2000.02316.46
5.4.130.2330.03316.66
5.4.120.2230.04016.71
5.4.110.1900.03716.35
5.4.100.1830.03316.45
5.4.90.1970.04316.45
5.4.80.1730.04016.26
5.4.70.1870.04016.52
5.4.60.2130.03716.19
5.4.50.2000.04316.16
5.4.40.1970.04316.34
5.4.30.1770.03716.51
5.4.20.1870.02716.52
5.4.10.2030.04316.52
5.4.00.1970.04015.82
5.3.280.1900.03314.61
5.3.270.2030.04314.55
5.3.260.1630.04314.40
5.3.250.2030.04314.45
5.3.240.2130.04014.46
5.3.230.1870.03714.53
5.3.220.1830.04014.40
5.3.210.2070.04314.43
5.3.200.1930.03014.41
5.3.190.2030.04014.43
5.3.180.2100.03714.66
5.3.170.1900.03714.58
5.3.160.1830.03714.41
5.3.150.2000.04314.43
5.3.140.2030.04314.50
5.3.130.2000.05314.50
5.3.120.2100.04014.38
5.3.110.1830.04314.49
5.3.100.1800.03714.06
5.3.90.2030.04314.12
5.3.80.2030.03713.86
5.3.70.2000.04313.84
5.3.60.2070.04013.80
5.3.50.2100.03713.79
5.3.40.1900.04013.99
5.3.30.1900.03013.74
5.3.20.1830.03713.54
5.3.10.1800.03713.45
5.3.00.1770.03713.47

preferences:
138.98 ms | 1386 KiB | 7 Q