3v4l.org

run code in 500+ PHP versions simultaneously
<?php abstract class A { private function foo() { print __CLASS__; } } abstract class B extends A { private function foo() { print __CLASS__; } } class C extends B { private function foo() { print __CLASS__; } public function goo() { parent::foo(); a::foo(); } } Closure::bind( fn() => $this->foo(), new C, A::class )();

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.5.80.0290.00716.59
8.5.70.0260.00616.68
8.5.60.0170.00616.77
8.5.50.0250.00216.46
8.5.40.0190.00916.22
8.5.30.0170.00616.54
8.5.20.0250.00516.51
8.5.10.0220.00516.40
8.5.00.0150.00616.62
8.4.230.0180.00819.36
8.4.220.0160.00419.57
8.4.210.0160.00819.47
8.4.200.0200.00519.29
8.4.190.0230.00919.22
8.4.180.0250.00519.40
8.4.170.0180.00419.73
8.4.160.0230.00719.68
8.4.150.0190.00819.61
8.4.140.0250.01017.33
8.4.130.0280.00617.26
8.4.120.0230.00618.53
8.4.110.0250.01217.38
8.4.100.0270.00817.65
8.4.90.0290.00517.58
8.4.80.0330.01117.64
8.4.70.0250.00817.59
8.4.60.0260.00617.61
8.4.50.0260.00717.68
8.4.40.0270.00717.47
8.4.30.0200.00617.58
8.4.20.0160.00417.63
8.4.10.0200.00417.48
8.3.320.0120.00618.31
8.3.310.0190.00518.26
8.3.300.0230.00518.06
8.3.290.0230.00918.13
8.3.280.0270.00818.25
8.3.270.0230.00716.64
8.3.260.0340.00616.40
8.3.250.0180.00716.50
8.3.240.0300.00516.58
8.3.230.0260.00516.38
8.3.220.0230.00616.59
8.3.210.0240.00416.41
8.3.200.0230.00616.52
8.3.190.0260.00616.47
8.3.180.0250.00616.41
8.3.170.0170.00616.41
8.3.160.0180.00516.42
8.3.150.0160.00416.65
8.3.140.0250.00616.53
8.3.130.0170.00516.57
8.3.120.0150.00416.58
8.3.110.0170.00616.40
8.3.100.0200.00416.66
8.3.90.0180.00516.51
8.3.80.0140.00516.74
8.3.70.0200.00516.52
8.3.60.0180.00616.61
8.3.50.0220.00716.59
8.3.40.0270.01017.76
8.3.30.0230.00617.82
8.3.20.0240.00817.81
8.3.10.0250.00517.82
8.3.00.0250.00817.88
8.2.320.0080.00618.03
8.2.310.0190.00617.84

preferences:
42.7 ms | 760 KiB | 5 Q