3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class AbstractService { } abstract class AbstractFactory { abstract function make(AbstractService $s); } class ConcreteService extends AbstractService { } class ConcreteFactory extends AbstractFactory { function make(ConcreteService $s) {} }

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.0.70.0600.07319.93
7.0.60.0470.06019.84
7.0.50.0270.07320.34
7.0.40.0170.07320.38
7.0.30.0430.07020.31
7.0.20.0270.07320.38
7.0.10.0670.06320.34
7.0.00.0830.07320.33
5.6.220.0570.07320.69
5.6.210.0400.05320.56
5.6.200.0470.06721.07
5.6.190.0330.06721.09
5.6.180.0330.06321.14
5.6.170.0400.06721.09
5.6.160.0600.06321.13
5.6.150.0600.07021.04
5.6.140.0500.08021.07
5.6.130.0200.05721.18
5.6.120.0470.07721.03
5.6.110.0530.06321.07
5.6.100.1100.06021.15
5.6.90.0870.05021.13
5.6.80.1070.08020.48
5.6.70.0500.06020.45
5.6.60.0170.06020.46
5.6.50.0430.06720.47
5.6.40.2000.06320.47
5.6.30.0530.05320.50
5.6.20.0600.08020.34
5.6.10.0730.05720.35
5.6.00.0500.08020.37
5.5.360.0470.05720.41
5.5.350.0270.06720.48
5.5.340.0430.07720.94
5.5.330.0100.08020.93
5.5.320.0430.08020.95
5.5.310.0400.07020.93
5.5.300.0430.07320.69
5.5.290.0270.05320.96
5.5.280.0300.06720.98
5.5.270.0870.06320.93
5.5.260.1430.08320.95
5.5.250.0730.06720.53
5.5.240.1800.08020.28
5.5.230.0570.06720.07
5.5.220.0330.06320.31
5.5.210.0570.05020.28
5.5.200.0830.04320.28
5.5.190.0600.05720.31
5.5.180.1870.05720.35
5.5.160.0130.07720.26
5.5.150.0330.07020.33
5.5.140.0400.05320.27
5.5.130.0430.04720.23
5.5.120.0430.05320.13
5.5.110.0370.05320.18
5.5.100.0230.07020.11
5.5.90.0770.05020.15
5.5.80.0030.07320.20
5.5.70.0430.07020.09
5.5.60.1170.07020.22
5.5.50.0200.07320.15
5.5.40.0430.07720.20
5.5.30.0730.06020.21
5.5.20.0170.07720.09
5.5.10.0470.06320.10
5.5.00.0770.07720.03

preferences:
136.13 ms | 1394 KiB | 7 Q