3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function run() { return call_user_func(array('Bar', 'getValue')); } private function getValue() { return 'Foo'; } } class Bar extends Foo { public static function getValue() { return 'Bar'; } } $x = new Bar; echo $x->run();

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)
8.3.60.0100.00318.31
8.3.50.0080.01321.14
8.3.40.0210.00018.70
8.3.30.0060.01018.68
8.3.20.0040.00418.77
8.3.10.0080.00020.51
8.3.00.0080.00023.71
8.2.180.0040.01116.38
8.2.170.0070.01322.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00819.38
8.2.110.0110.00422.25
8.2.100.0090.00018.72
8.1.280.0100.00725.92
8.1.270.0040.01123.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00318.48
8.1.230.0040.00418.39
5.4.100.0030.04316.61
5.4.90.0100.03016.43
5.4.80.0000.08016.49
5.4.70.0130.03316.45
5.4.60.0000.07716.32
5.4.50.0130.06016.21
5.4.40.0130.04716.41
5.4.30.0000.04016.30
5.4.20.0030.05716.30
5.4.10.0000.04316.42
5.4.00.0070.03315.85
5.3.200.0070.08014.64
5.3.190.0070.07714.56
5.3.180.0100.06314.53
5.3.170.0130.07714.44
5.3.160.0030.05314.67
5.3.150.0100.07314.56
5.3.140.0070.04714.61
5.3.130.0070.03714.61
5.3.120.0070.04314.55
5.3.110.0000.04314.60
5.3.100.0030.04013.99
5.3.90.0100.05714.04
5.3.80.0030.04013.86
5.3.70.0100.06314.05
5.3.60.0030.05013.89
5.3.50.0000.05714.00
5.3.40.0000.04013.99
5.3.30.0000.04014.13
5.3.20.0030.03713.76
5.3.10.0070.07013.72
5.3.00.0100.05713.66

preferences:
33.51 ms | 401 KiB | 5 Q