3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class AAA { public function foo () { echo $this->childValue(); } abstract public function childValue(): string; } class XXXXXX extends AAA { public function childValue (): string { return "x"; } } class YYYYYY extends AAA { public function childValue (): string { return "y"; } } class ZZZZZZ extends AAA { public function childValue (): string { return "z"; } } //class WRONG extends AAA { // if empty: // Fatal error: Class WRONG contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (AAA::childValue) in /tmp/preview on line 29 //} $objX = new XXXXXX(); $objX->foo(); $objY = new YYYYYY(); $objY->foo(); $objZ = new ZZZZZZ(); $objZ->foo();

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.4.120.0150.00520.36
8.4.110.0070.00222.63
8.4.100.0060.00418.73
8.4.90.0050.00318.50
8.4.80.0120.00517.84
8.4.70.0100.00818.04
8.4.60.0100.01118.84
8.4.50.0090.01318.57
8.4.40.0160.00317.49
8.4.30.0110.00718.76
8.4.20.0130.00717.92
8.4.10.0090.00619.67
8.3.250.0040.00418.85
8.3.240.0110.00416.38
8.3.230.0090.00916.39
8.3.220.0110.00717.10
8.3.210.0120.00416.50
8.3.200.0040.00716.70
8.3.190.0090.01116.93
8.3.180.0070.01116.47
8.3.170.0040.01418.88
8.3.160.0100.00718.28
8.3.150.0070.01016.50
8.3.140.0080.00016.80
8.3.130.0050.00318.44
8.3.120.0040.00418.94
8.3.110.0040.00420.94
8.3.100.0000.00816.59
8.3.90.0080.00026.77
8.3.80.0030.00618.18
8.3.70.0110.00818.43
8.3.60.0090.00918.68
8.3.50.0150.00716.60
8.3.40.0120.00620.09
8.3.30.0170.00321.74
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0120.00928.09
8.2.290.0050.00320.60
8.2.280.0130.00518.32
8.2.270.0080.01218.40
8.2.260.0170.00017.13
8.2.250.0060.00918.36
8.2.240.0030.00919.11
8.2.230.0060.00322.58
8.2.220.0030.00724.06
8.2.210.0060.00326.77
8.2.200.0060.00316.50
8.2.190.0120.00316.75
8.2.180.0170.00316.35
8.2.170.0090.00618.97
8.2.160.0110.00422.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0050.00328.09
8.2.120.0040.00428.09
8.1.330.0090.01021.72
8.1.320.0100.00916.29
8.1.310.0060.00916.61
8.1.300.0150.00016.13
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0040.00420.31
8.1.260.0040.00428.09
8.1.250.0060.00328.09

preferences:
26.68 ms | 403 KiB | 5 Q