3v4l.org

run code in 300+ PHP versions simultaneously
<?php function make() { class Foo { public function getClass() { return call_user_func(function () { return call_user_func(function () { return [__CLASS__, __METHOD__, __FUNCTION__]}); }); } } return new Foo(); } $foo = make(); var_dump($foo->getClass());

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.300.0300.04019.24
5.4.290.0200.04718.98
5.4.280.0370.06318.95
5.4.270.0230.04019.16
5.4.260.0270.04718.87
5.4.250.0170.03718.86
5.4.240.0130.07019.21
5.4.230.0200.05019.07
5.4.220.0330.06019.22
5.4.210.0170.08319.13
5.4.200.0170.04318.98
5.4.190.0100.05319.23
5.4.180.0300.07319.23
5.4.170.0300.03719.12
5.4.160.0170.05719.13
5.4.150.0270.07319.18
5.4.140.0230.04016.42
5.4.130.0230.05016.39
5.4.120.0230.04016.40
5.4.110.0200.04716.30
5.4.100.0270.06716.41
5.4.90.0270.06316.57
5.4.80.0170.07316.23
5.4.70.0230.06716.49
5.4.60.0200.03716.54
5.4.50.0170.07716.31
5.4.40.0270.06316.26
5.4.30.0200.04016.48
5.4.20.0270.05016.44
5.4.10.0200.04016.50
5.4.00.0130.07715.84
5.3.280.0130.04714.83
5.3.270.0200.03314.54
5.3.260.0200.04314.77
5.3.250.0130.04014.77
5.3.240.0200.07014.63
5.3.230.0130.04014.52
5.3.220.0130.04714.61
5.3.210.0200.07714.59
5.3.200.0270.03714.56
5.3.190.0270.07014.81
5.3.180.0170.04714.49
5.3.170.0230.06314.55
5.3.160.0300.07014.72
5.3.150.0270.05014.80
5.3.140.0230.03714.54
5.3.130.0130.04014.54
5.3.120.0170.03714.53
5.3.110.0100.04314.79
5.3.100.0200.04314.06
5.3.90.0230.04314.01
5.3.80.0170.04314.27
5.3.70.0230.06713.93
5.3.60.0100.04013.93
5.3.50.0230.05013.96
5.3.40.0200.03714.01
5.3.30.0300.02014.14
5.3.20.0170.03713.62
5.3.10.0170.03713.75
5.3.00.0130.06713.77

preferences:
140.23 ms | 1394 KiB | 7 Q