3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private function getTest() { return "foo"; } public function baz() { return $this->getTest() } } class Bar extends Foo { protected function getTest() { return "BAR"; } } $d = new Bar; echo $d->baz();

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.130.0130.07318.16
5.6.120.0130.08021.09
5.6.110.0070.06720.99
5.6.100.0030.08720.98
5.6.90.0030.08021.08
5.6.80.0000.08720.48
5.5.290.0070.06717.98
5.5.280.0100.08320.98
5.5.270.0100.05720.75
5.5.260.0070.08720.88
5.5.250.0170.07020.57
5.5.240.0070.08020.36
5.4.450.0270.06019.48
5.4.440.0770.07719.61
5.4.430.0630.05719.61
5.4.420.0470.04719.44
5.4.410.0500.05719.27
5.4.400.0670.05719.15
5.4.390.0800.06319.06
5.4.380.0670.05719.15
5.4.370.0130.05319.29
5.4.360.0530.04319.06
5.4.350.0730.05719.32
5.4.340.0770.05019.33
5.4.320.0870.04719.20
5.4.310.0700.05019.17
5.4.300.0800.05019.11
5.4.290.0300.05319.30
5.4.280.0230.05719.14
5.4.270.0770.06719.27
5.4.260.0930.06319.22
5.4.250.0970.05319.37
5.4.240.0830.06319.15
5.4.230.1000.05719.14
5.4.220.0770.06719.37
5.4.210.0730.08018.99
5.4.200.0770.05716.91
5.4.190.0800.05718.98
5.4.180.0700.05719.21
5.4.170.1000.06318.90
5.4.160.1130.05318.96
5.4.150.0900.06318.90
5.4.140.0930.05716.30
5.4.130.0730.06716.45
5.4.120.0700.04716.48
5.4.110.1000.05016.46
5.4.100.0900.05716.46
5.4.90.0730.06016.29
5.4.80.0770.05716.25
5.4.70.0670.04716.24
5.4.60.0970.05316.47
5.4.50.0730.04716.33
5.4.40.0700.05016.51
5.4.30.0930.06016.43
5.4.20.0700.06316.48
5.4.10.1030.05316.32
5.4.00.0730.05315.81
5.3.290.0830.05314.57
5.3.280.0770.05714.65
5.3.270.0770.04714.52
5.3.260.0700.04714.52
5.3.250.0270.06314.47
5.3.240.0430.04714.70
5.3.230.0970.05014.48
5.3.220.0730.05014.49
5.3.210.0800.05314.54
5.3.200.0830.04314.65
5.3.190.0770.05014.47
5.3.180.0830.05014.57
5.3.170.0670.05314.55
5.3.160.0770.05014.58
5.3.150.0930.05314.57
5.3.140.0830.05014.71
5.3.130.1000.06314.70
5.3.120.0730.05314.47
5.3.110.0670.05314.55
5.3.100.0800.05313.92
5.3.90.0870.04713.93
5.3.80.0670.06314.11
5.3.70.1000.06014.07
5.3.60.0930.05014.02
5.3.50.0770.05314.09
5.3.40.0670.05313.80
5.3.30.0670.05713.99
5.3.20.0900.05013.78
5.3.10.0630.04713.56
5.3.00.0600.05313.64
5.2.170.0530.04011.30
5.2.160.0470.05711.11
5.2.150.0570.04311.16
5.2.140.0630.04011.04
5.2.130.0600.04311.02
5.2.120.0470.05011.02
5.2.110.0500.04311.00
5.2.100.0630.03011.11
5.2.90.0670.04011.03
5.2.80.0730.06011.02
5.2.70.0630.05711.00
5.2.60.0770.04011.05
5.2.50.0630.03711.11
5.2.40.0400.04711.08
5.2.30.0400.05010.87
5.2.20.0600.04011.02
5.2.10.0530.04010.82
5.2.00.0530.04310.73
5.1.60.0330.04010.00
5.1.50.0470.0409.93
5.1.40.0370.03710.01
5.1.30.0400.04310.43
5.1.20.0430.03710.36
5.1.10.0300.04310.07
5.1.00.0370.03710.30
5.0.50.0330.0379.71
5.0.40.0430.0339.71
5.0.30.0270.0539.71
5.0.20.0200.0309.71
5.0.10.0300.0239.71
5.0.00.0370.0539.71
4.4.90.0170.0309.71
4.4.80.0230.0239.71
4.4.70.0270.0239.71
4.4.60.0230.0209.71
4.4.50.0170.0279.71
4.4.40.0230.0379.71
4.4.30.0330.0209.71
4.4.20.0270.0179.71
4.4.10.0270.0239.71
4.4.00.0230.0379.71
4.3.110.0200.0239.71
4.3.100.0170.0309.71
4.3.90.0300.0179.71
4.3.80.0370.0279.71
4.3.70.0170.0209.71
4.3.60.0100.0209.71
4.3.50.0030.0239.71
4.3.40.0000.0379.71
4.3.30.0130.0239.71
4.3.20.0130.0239.71
4.3.10.0030.0279.71
4.3.00.0000.0237.10

preferences:
146.61 ms | 1394 KiB | 7 Q