3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { public function abc() { } } class Bar extends Foo { protected function abc() { } }

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)
7.1.60.2900.01033.07
7.1.50.0230.02032.87
7.1.40.3600.01032.36
7.1.30.4170.01032.28
7.1.20.4200.02732.69
7.1.10.5400.01014.53
7.1.00.3870.00714.50
7.0.200.1270.01314.68
7.0.190.3000.02014.81
7.0.180.2900.01014.26
7.0.170.4030.01014.29
7.0.160.3870.01014.42
7.0.150.3600.00714.26
7.0.140.2170.00714.38
7.0.130.3930.01014.63
7.0.120.2870.00314.52
7.0.110.3730.01014.53
7.0.100.3930.01714.19
7.0.90.3270.01014.24
7.0.80.1830.01314.25
7.0.70.2100.01014.21
7.0.60.1800.01014.13
7.0.50.2030.01014.27
7.0.40.1700.01314.53
7.0.30.2070.01314.55
7.0.20.2570.00314.49
7.0.10.0230.01314.34
7.0.00.1970.01714.45

preferences:
139.26 ms | 1386 KiB | 7 Q