3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*** * This works in PHP5 but does not anymore in PHP6 */ class Parnt { public function foo() {} } class Child extends Parnt { public function foo($arg){} } /*** * Those don't work in either 5 or 6 */ interface Inter { public function foo(); } class Child3 implements Inter { public function foo($arg){} } abstract class Abst { abstract public function foo(); } class Child2 extends Abst { public function foo($arg){} }

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.6.110.0130.08320.90
5.6.100.0130.07321.14
5.6.90.0070.08320.97
5.6.80.0030.03720.45
5.5.270.0170.07320.75
5.5.260.0000.04320.90
5.5.250.0130.05720.70
5.5.240.0030.07720.13
5.4.430.0900.04019.62
5.4.420.0630.05319.54
5.4.410.0770.05319.29
5.4.400.0670.04719.30
5.4.390.0800.05018.92
5.4.380.0770.05019.21
5.4.370.0730.05319.04
5.4.360.0770.05319.31
5.4.350.0600.05319.13
5.4.340.0670.05019.31
5.4.320.0570.06018.89
5.4.310.0730.05318.87
5.4.300.0800.04719.32
5.4.290.0770.05019.13
5.4.280.0970.03719.23
5.4.270.0700.05719.32
5.4.260.0800.04719.29
5.4.250.0800.04719.07
5.4.240.0730.05319.06
5.4.230.0770.04719.07
5.4.220.0830.05318.87
5.4.210.0870.06018.96
5.4.200.0800.04316.63
5.4.190.0800.04718.91
5.4.180.0800.04718.89
5.4.170.0770.05319.11
5.4.160.0670.06019.18
5.4.150.0800.04719.15
5.4.140.0800.04316.73
5.4.130.0130.05016.48
5.4.120.0030.05316.48
5.4.110.0000.05716.48
5.4.100.0330.05016.53
5.4.90.0800.04716.53
5.4.80.0870.04016.66
5.4.70.0700.05316.50
5.4.60.0670.05316.32
5.4.50.0770.04316.52
5.4.40.0770.05016.24
5.4.30.0800.04316.42
5.4.20.0730.05316.44
5.4.10.0630.05716.24
5.4.00.0770.05715.79
5.3.290.0670.06314.70
5.3.280.0800.04714.50
5.3.270.0600.06714.44
5.3.260.0730.05314.55
5.3.250.0770.05014.52
5.3.240.0570.05714.53
5.3.230.0600.05314.77
5.3.220.0570.05714.56
5.3.210.0700.04714.57
5.3.200.0670.04714.48
5.3.190.1030.05014.65
5.3.180.1000.05314.56
5.3.170.0670.04314.53
5.3.160.0670.04714.56
5.3.150.0630.05314.48
5.3.140.0670.04714.71
5.3.130.0600.05314.67
5.3.120.0770.05714.56
5.3.110.0730.05314.61
5.3.100.0670.06014.20
5.3.90.0730.05013.99
5.3.80.0770.05014.00
5.3.70.0770.05014.05
5.3.60.0800.04313.98
5.3.50.0770.04713.93
5.3.40.0730.05013.86
5.3.30.0730.04713.90
5.3.20.0800.04313.77
5.3.10.0730.04713.58
5.3.00.0830.04013.77
5.2.170.0600.04311.14
5.2.160.0570.04311.22
5.2.150.0700.03011.23
5.2.140.0630.04011.23
5.2.130.0770.04711.23
5.2.120.0800.03711.27
5.2.110.0570.03311.02
5.2.100.0670.03311.12
5.2.90.0670.03011.07
5.2.80.0630.04011.00
5.2.70.0670.03711.02
5.2.60.0700.03310.97
5.2.50.0570.04311.09
5.2.40.0500.04010.92
5.2.30.0530.04010.95
5.2.20.0400.03711.11
5.2.10.0370.04010.88
5.2.00.0430.03710.87
5.1.60.0400.03310.05
5.1.50.0430.0309.94
5.1.40.0400.03310.03
5.1.30.0470.03010.53
5.1.20.0330.04310.53
5.1.10.0470.0409.97
5.1.00.0600.04010.06
5.0.50.0230.0308.48
5.0.40.0270.0278.27
5.0.30.0200.0478.24
5.0.20.0230.0308.36
5.0.10.0270.0238.19
5.0.00.0200.0478.11
4.4.90.0270.0175.77
4.4.80.0230.0235.82
4.4.70.0200.0235.85
4.4.60.0300.0135.73
4.4.50.0230.0235.75
4.4.40.0270.0335.86
4.4.30.0170.0235.88
4.4.20.0230.0205.88
4.4.10.0200.0205.94
4.4.00.0300.0305.77
4.3.110.0170.0235.80
4.3.100.0130.0275.75
4.3.90.0170.0235.74
4.3.80.0270.0275.76
4.3.70.0130.0235.78
4.3.60.0230.0175.80
4.3.50.0200.0235.75
4.3.40.0170.0335.74
4.3.30.0100.0204.97
4.3.20.0100.0204.97
4.3.10.0100.0204.97
4.3.00.0070.0276.98

preferences:
154.74 ms | 1394 KiB | 7 Q