3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface testInterface { public function testFunc() { return 'I\'m from the interface'; } } class testClass implements testInterface { public function testFunc() { parent::testFunc(); } } $testClass = new testClass(); echo $testClass->testFunc();

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.120.0100.08021.04
5.6.110.0030.09021.12
5.6.100.0130.07321.14
5.6.90.0100.05321.10
5.6.80.0030.08320.41
5.6.70.3830.04020.25
5.5.280.0130.07720.76
5.5.270.0070.07020.88
5.5.260.0170.07720.89
5.5.250.0070.08320.78
5.5.240.0170.05020.27
5.4.440.0570.06319.56
5.4.430.0600.05719.38
5.4.420.0530.05019.46
5.4.410.0700.05319.32
5.4.400.0430.06019.36
5.4.390.0400.06318.88
5.4.380.0430.05318.86
5.4.370.0530.05019.35
5.4.360.0470.05719.36
5.4.350.0770.05019.29
5.4.340.0570.05718.82
5.4.320.0500.05319.36
5.4.310.0530.04319.13
5.4.300.0500.05319.07
5.4.290.0530.05719.29
5.4.280.0530.05319.28
5.4.270.0430.06019.25
5.4.260.0430.05718.84
5.4.250.0530.05319.27
5.4.240.0500.05718.83
5.4.230.0470.07019.24
5.4.220.0500.07018.83
5.4.210.0730.04718.97
5.4.200.0600.05317.14
5.4.190.0600.05318.87
5.4.180.0570.04718.87
5.4.170.0500.05719.00
5.4.160.0470.05318.96
5.4.150.0470.05719.00
5.4.140.0570.06716.56
5.4.130.0630.05016.50
5.4.120.0730.06316.54
5.4.110.0730.06316.29
5.4.100.0530.05716.38
5.4.90.0570.04716.31
5.4.80.0670.04316.30
5.4.70.0730.05016.54
5.4.60.0570.05316.51
5.4.50.0630.05016.27
5.4.40.0630.05316.27
5.4.30.0870.06016.29
5.4.20.0770.05316.29
5.4.10.0600.06716.26
5.4.00.0570.06016.00
5.3.290.0600.05314.67
5.3.280.0530.04714.59
5.3.270.0500.04714.59
5.3.260.0730.04714.57
5.3.250.0430.06314.52
5.3.240.0670.04714.68
5.3.230.0500.05314.51
5.3.220.0530.06714.54
5.3.210.0630.07314.57
5.3.200.0570.05714.71
5.3.190.0570.07014.65
5.3.180.0730.05714.55
5.3.170.0530.05714.64
5.3.160.0730.05314.57
5.3.150.0670.05014.55
5.3.140.0700.06714.46
5.3.130.0600.07014.54
5.3.120.0270.06014.69
5.3.110.0130.05314.45
5.3.100.0530.06313.93
5.3.90.0530.05714.10
5.3.80.0670.05713.92
5.3.70.0230.06014.03
5.3.60.0030.05713.93
5.3.50.0030.05713.84
5.3.40.0630.06013.86
5.3.30.0600.05313.99
5.3.20.0630.05713.83
5.3.10.0630.04713.55
5.3.00.0600.05713.64
5.2.170.0430.04711.05
5.2.160.0470.04311.05
5.2.150.0570.03311.20
5.2.140.0530.03711.14
5.2.130.0470.05011.25
5.2.120.0630.04311.02
5.2.110.0500.04011.01
5.2.100.0530.04310.96
5.2.90.0600.04711.00
5.2.80.0530.05311.00
5.2.70.0530.04011.18
5.2.60.0400.04711.00
5.2.50.0370.04710.93
5.2.40.0470.03011.14
5.2.30.0370.04010.88
5.2.20.0400.04010.88
5.2.10.0500.04710.82
5.2.00.0570.04310.62
5.1.60.0500.0379.88
5.1.50.0430.04310.02
5.1.40.0370.03710.05
5.1.30.0600.03710.29
5.1.20.0470.04010.25
5.1.10.0530.0379.98
5.1.00.0430.03310.29
5.0.50.0300.0308.52
5.0.40.0330.0208.49
5.0.30.0200.0478.29
5.0.20.0300.0278.13
5.0.10.0200.0308.06
5.0.00.0200.0478.16
4.4.90.0270.0205.84
4.4.80.0130.0235.84
4.4.70.0170.0275.79
4.4.60.0170.0235.80
4.4.50.0270.0205.76
4.4.40.0270.0335.84
4.4.30.0170.0235.83
4.4.20.0230.0205.82
4.4.10.0200.0205.88
4.4.00.0200.0335.83
4.3.110.0130.0235.73
4.3.100.0130.0235.68
4.3.90.0030.0205.78
4.3.80.0030.0405.73
4.3.70.0100.0205.77
4.3.60.0030.0235.73
4.3.50.0100.0275.70
4.3.40.0070.0335.71
4.3.30.0000.0274.43
4.3.20.0000.0234.48
4.3.10.0070.0204.43
4.3.00.0030.0206.77

preferences:
150.54 ms | 1394 KiB | 7 Q