3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class myBaseClass { abstract protected function doSomething(); public function rerere() { return "..."; } } class myClass extends myBaseClass { public function doSomething() { $parent->rerere(); } } $implementor = new myClass(); $implementor->doSomething();
based on nfbQZ

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0100.00816.22
7.3.00.0080.00616.42
7.2.130.0110.00716.57
7.2.120.0080.00316.45
7.2.110.0070.00716.62
7.2.100.0110.00716.70
7.2.90.0050.00516.73
7.2.80.0080.00716.58
7.2.70.0040.01116.77
7.2.60.0060.00716.45
7.2.50.0120.00416.63
7.2.40.0090.00916.68
7.2.30.0080.01116.66
7.2.20.0100.00716.70
7.2.10.0090.00616.76
7.2.00.0030.01017.61
7.1.250.0090.00515.16
7.1.200.0070.00715.74
7.1.100.0040.00717.88
7.1.70.0070.00716.72
7.1.60.0040.02119.13
7.1.50.0060.01616.82
7.1.00.0070.07322.33
7.0.200.1300.00314.30
7.0.60.0070.05019.91
7.0.50.0100.03717.87
7.0.40.0070.08320.26
7.0.30.0370.07020.23
7.0.20.0270.06320.23
7.0.10.0330.04720.02
7.0.00.0070.07720.24
5.6.280.0100.06720.90
5.6.210.0070.08020.48
5.6.200.0070.06318.29
5.6.190.0000.08320.64
5.6.180.0030.08020.63
5.6.170.0230.07320.52
5.6.160.0030.08020.39
5.6.150.0030.04018.12
5.6.140.0070.04018.14
5.6.130.0070.04718.19
5.6.120.0100.07721.14
5.6.110.0130.03720.96
5.6.100.0100.06020.99
5.6.90.0030.08721.00
5.6.80.0070.03720.38
5.6.70.0270.07320.36
5.5.350.0030.08020.47
5.5.340.0000.04717.98
5.5.330.0070.04020.19
5.5.320.0070.08020.51
5.5.310.0270.08020.23
5.5.300.0070.08017.95
5.5.290.0100.03718.07
5.5.280.0000.05720.73
5.5.270.0070.03720.87
5.5.260.0070.03720.80
5.5.250.0170.07720.68
5.5.240.0100.05720.05
5.4.450.0670.05319.55
5.4.440.0770.05319.56
5.4.430.0730.05719.16
5.4.420.0770.06319.51
5.4.410.0770.05019.30
5.4.400.0670.05319.02
5.4.390.0770.05319.02
5.4.380.0500.06019.19
5.4.370.0600.05719.11
5.4.360.0670.06019.30
5.4.350.0630.06019.19
5.4.340.0530.05719.02
5.4.320.0530.05319.20
5.4.310.0770.06718.87
5.4.300.0730.05719.25
5.4.290.0930.03719.30
5.4.280.0600.06019.19
5.4.270.0770.05718.98
5.4.260.0770.06019.14
5.4.250.0600.05319.14
5.4.240.0770.04319.21
5.4.230.0700.05319.14
5.4.220.0770.05318.84
5.4.210.0630.06019.00
5.4.200.0870.04019.00
5.4.190.0670.05719.18
5.4.180.0770.05319.18
5.4.170.0800.05719.13
5.4.160.0730.05719.10
5.4.150.0930.07019.19
5.4.140.0800.04316.49
5.4.130.0670.04716.45
5.4.120.0630.06016.59
5.4.110.0900.05316.50
5.4.100.0600.04716.57
5.4.90.0700.05016.63
5.4.80.0770.05716.61
5.4.70.0630.07316.55
5.4.60.0600.07716.61
5.4.50.0670.07016.41
5.4.40.0770.06716.64
5.4.30.0600.08016.59
5.4.20.0770.06716.25
5.4.10.0700.06716.58
5.4.00.0800.06715.88
5.3.290.0800.06714.71
5.3.280.0730.07314.50
5.3.270.0600.08714.59
5.3.260.0700.07314.63
5.3.250.0700.06314.69
5.3.240.0430.08014.46
5.3.230.0570.05714.82
5.3.220.0500.06314.47
5.3.210.0730.05714.58
5.3.200.0470.05714.47
5.3.190.0530.05714.62