3v4l.org

run code in 300+ PHP versions simultaneously
<?php class parentClass { public function method1() {$this->method2();} } class childClass extends parentClass { protected function method2() {} } class grandChildClass extends childClass { public function method3() {$this->method2();} } $p = new parentClass; $p->method1(); $c = new childClass; $c->method1(); $g = new grandChildClass; $g->method1(); $g->method3();

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)
8.3.60.0090.01218.68
8.3.50.0150.00516.35
8.3.40.0060.01218.83
8.3.30.0100.00318.71
8.3.20.0040.00418.73
8.3.10.0000.00820.50
8.3.00.0040.00417.50
8.2.180.0110.00716.75
8.2.170.0110.00422.96
8.2.160.0110.00422.25
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0050.00319.77
8.2.110.0040.00420.99
8.2.100.0040.00717.72
8.2.90.0000.00919.13
8.2.80.0040.00418.04
8.2.70.0040.00417.50
8.2.60.0000.00717.92
8.2.50.0060.00318.07
8.2.40.0080.00018.22
8.2.30.0040.00418.05
8.2.20.0040.00417.72
8.2.10.0040.00417.56
8.2.00.0040.00417.73
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00620.59
8.1.230.0000.01120.95
8.1.220.0000.00818.77
8.1.210.0040.00418.89
8.1.200.0090.00017.35
8.1.190.0040.00417.54
8.1.180.0050.00318.10
8.1.170.0000.00818.76
8.1.160.0040.00418.79
8.1.150.0070.00018.62
8.1.140.0070.00017.30
8.1.130.0030.00317.83
8.1.120.0080.00017.25
8.1.110.0030.00517.29
8.1.100.0000.00817.28
8.1.90.0000.00717.29
8.1.80.0040.00417.28
8.1.70.0050.00317.27
8.1.60.0000.00817.54
8.1.50.0040.00417.53
8.1.40.0000.00817.50
8.1.30.0040.00417.66
8.1.20.0000.00817.59
8.1.10.0000.00817.54
8.1.00.0000.00817.48
8.0.300.0000.00719.91
8.0.290.0080.00316.75
8.0.280.0030.00318.26
8.0.270.0040.00417.20
8.0.260.0030.00316.79
8.0.250.0050.00316.95
8.0.240.0000.00716.84
8.0.230.0040.00416.98
8.0.220.0000.00716.94
8.0.210.0070.00016.93
8.0.200.0060.00016.97
8.0.190.0080.00017.00
8.0.180.0070.00016.89
8.0.170.0040.00416.78
8.0.160.0070.00016.84
8.0.150.0000.01016.82
8.0.140.0070.00416.77
8.0.130.0030.00313.34
8.0.120.0050.00316.84
8.0.110.0000.00716.72
8.0.100.0030.00516.94
8.0.90.0040.00416.89
8.0.80.0030.01316.89
8.0.70.0040.00416.77
8.0.60.0040.00416.77
8.0.50.0000.00716.78
8.0.30.0090.01017.18
8.0.20.0090.01617.09
8.0.10.0030.00517.08
8.0.00.0060.01217.00
7.4.330.0020.00214.64
7.4.320.0060.00016.35
7.4.300.0040.00416.63
7.4.290.0020.00516.52
7.4.280.0030.00616.59
7.4.270.0000.00716.52
7.4.260.0000.00513.25
7.4.250.0000.00816.52
7.4.240.0040.00416.51
7.4.230.0030.00316.54
7.4.220.0100.00716.50
7.4.210.0070.00816.51
7.4.200.0000.00716.54
7.4.190.0040.00416.56
7.4.160.0030.01316.41
7.4.150.0120.00617.07
7.4.140.0120.01217.15
7.4.130.0170.01516.57
7.4.120.0110.00616.40
7.4.110.0060.01216.48
7.4.100.0040.01216.41
7.4.90.0140.00416.48
7.4.80.0070.01018.80
7.4.70.0130.00616.49
7.4.60.0100.00616.45
7.4.50.0030.00316.42
7.4.40.0040.01122.27
7.4.30.0130.00316.48
7.4.00.0040.00715.14
7.3.330.0030.00313.38
7.3.320.0000.00613.41
7.3.310.0000.00716.25
7.3.300.0030.00616.24
7.3.290.0100.00516.38
7.3.280.0080.01016.38
7.3.270.0060.01217.07
7.3.260.0090.00718.24
7.3.250.0100.00916.42
7.3.240.0070.01016.29
7.3.230.0070.01016.39
7.3.210.0130.00316.35
7.3.200.0080.00819.39
7.3.190.0030.01416.53
7.3.180.0060.00916.30
7.3.170.0180.00016.51
7.3.160.0070.01516.55
7.3.120.0090.00914.90
7.3.110.0130.00014.53
7.3.100.0030.01014.75
7.3.90.0030.01214.92
7.3.80.0000.01715.11
7.3.70.0090.00614.94
7.3.60.0040.01114.77
7.3.50.0000.01314.83
7.3.40.0080.00814.82
7.3.30.0060.00614.84
7.3.20.0060.01216.63
7.3.10.0040.01116.20
7.3.00.0100.00316.55
7.2.330.0100.01016.55
7.2.320.0060.01116.70
7.2.310.0140.01116.64
7.2.300.0100.00616.46
7.2.290.0060.01216.73
7.2.240.0040.01515.00
7.2.230.0100.00714.96
7.2.220.0060.00314.88
7.2.210.0030.00714.82
7.2.200.0060.00614.62
7.2.190.0040.01114.81
7.2.180.0040.01114.87
7.2.170.0000.01714.99
7.2.160.0040.00815.04
7.2.150.0120.00316.75
7.2.140.0070.01316.78
7.2.130.0120.00016.71
7.2.120.0090.00616.53
7.2.110.0000.01716.54
7.2.100.0100.00316.84
7.2.90.0060.01216.96
7.2.80.0140.00316.65
7.2.70.0070.01116.82
7.2.60.0100.00616.62
7.2.50.0110.00416.96
7.2.40.0000.01116.73
7.2.30.0100.00316.99
7.2.20.0000.01216.88
7.2.10.0030.01016.83
7.2.00.0030.01216.85
7.1.330.0040.01415.50
7.1.320.0030.00915.69
7.1.310.0000.01315.63
7.1.300.0060.00915.28
7.1.290.0060.00615.59
7.1.280.0000.01515.48
7.1.270.0060.00915.59
7.1.260.0060.00615.43
7.1.250.0070.00715.79
7.1.200.0030.01015.63
7.1.70.0030.00317.14
7.1.60.0090.01319.40
7.1.50.0030.01216.89
7.1.00.0000.06322.36
7.0.200.0050.00516.60
7.0.140.0070.06721.99
7.0.60.0070.08019.91
7.0.50.0070.05017.88
7.0.40.0230.08020.06
7.0.30.0170.04020.30
7.0.20.0100.05020.07
7.0.10.0100.05020.10
7.0.00.0100.08020.23
5.6.280.0000.07720.99
5.6.210.0130.07020.67
5.6.200.0030.05318.18
5.6.190.0170.08020.69
5.6.180.0270.08020.35
5.6.170.0200.04020.45
5.6.160.0030.05320.47
5.6.150.0070.05318.15
5.6.140.0230.04018.18
5.6.130.0030.05018.17
5.6.120.0130.04321.04
5.6.110.0130.07720.87
5.6.100.0070.05721.09
5.6.90.0030.08720.98
5.6.80.0200.07020.52
5.5.350.0230.07720.34
5.5.340.0070.05717.99
5.5.330.0100.03720.31
5.5.320.0230.07720.30
5.5.310.0330.06320.27
5.5.300.0070.04318.04
5.5.290.0000.04317.95
5.5.280.0070.05720.99
5.5.270.0100.07720.98
5.5.260.0100.08720.95
5.5.250.0030.06020.71
5.5.240.0000.04320.13
5.4.450.0100.07019.49
5.4.440.0070.08019.48
5.4.430.0100.07719.19
5.4.420.0130.05019.24
5.4.410.0070.06019.34
5.4.400.0130.07019.16
5.4.390.0130.05719.25
5.4.380.0030.05319.12
5.4.370.0100.04019.23
5.4.360.0130.05718.88
5.4.350.0070.07319.21
5.4.340.0100.07018.98
5.4.320.0100.07018.84
5.4.310.0130.05718.96
5.4.300.0070.07019.14
5.4.290.0130.05718.87
5.4.280.0100.04319.14
5.4.270.0100.04318.86
5.4.260.0030.04719.14
5.4.250.0030.06719.14
5.4.240.0130.05718.84
5.4.230.0200.06019.00
5.4.220.0070.04019.25
5.4.210.0030.04019.11
5.4.200.0070.07718.87
5.4.190.0070.03718.99
5.4.180.0130.05018.96
5.4.170.0070.07319.14
5.4.160.0130.07319.13
5.4.150.0100.04718.90
5.4.140.0030.05016.44
5.4.130.0070.07016.31
5.4.120.0030.06016.46
5.4.110.0000.07716.58
5.4.100.0070.06716.38
5.4.90.0100.06316.51
5.4.80.0100.05716.45
5.4.70.0070.03716.37
5.4.60.0070.07716.45
5.4.50.0030.08016.50
5.4.40.0130.06316.64
5.4.30.0100.03716.36
5.4.20.0100.06316.43
5.4.10.0070.07316.34
5.4.00.0000.06315.82
5.3.290.0030.04014.68
5.3.280.0030.09314.48
5.3.270.0070.06014.57
5.3.260.0200.06314.66
5.3.250.0070.07314.53
5.3.240.0030.03714.61
5.3.230.0030.07714.75
5.3.220.0070.05714.73
5.3.210.0030.04714.63
5.3.200.0070.07014.58
5.3.190.0070.07014.56
5.3.180.0000.04314.57
5.3.170.0070.07314.60
5.3.160.0030.04714.58
5.3.150.0130.06314.61
5.3.140.0030.04714.58
5.3.130.0070.05714.56
5.3.120.0000.04714.60
5.3.110.0030.04014.57
5.3.100.0070.06013.95
5.3.90.0100.06713.91
5.3.80.0100.04713.91
5.3.70.0070.07713.99
5.3.60.0100.06714.07
5.3.50.0070.06713.96
5.3.40.0070.05713.96
5.3.30.0100.04013.97
5.3.20.0100.06713.75
5.3.10.0070.03313.67
5.3.00.0130.04313.64
5.2.170.0030.06311.32
5.2.160.0000.05011.05
5.2.150.0070.06011.31
5.2.140.0000.03311.15
5.2.130.0000.06711.11
5.2.120.0130.04011.11
5.2.110.0000.05011.16
5.2.100.0000.03711.11
5.2.90.0070.03311.06
5.2.80.0200.02311.01
5.2.70.0070.06011.25
5.2.60.0000.06310.95
5.2.50.0100.05711.10
5.2.40.0030.06711.07
5.2.30.0000.06310.97
5.2.20.0030.05710.96
5.2.10.0100.03710.86
5.2.00.0070.03310.70
5.1.60.0070.02710.05
5.1.50.0030.0439.97
5.1.40.0070.03710.13
5.1.30.0030.05010.50
5.1.20.0070.02310.50
5.1.10.0070.0439.98
5.1.00.0100.02010.14
5.0.50.0000.0308.60
5.0.40.0030.0208.43
5.0.30.0000.0478.29
5.0.20.0070.0378.22
5.0.10.0000.0378.24
5.0.00.0000.0508.12
4.4.90.0000.0407.99
4.4.80.0000.0377.99
4.4.70.0000.0377.99
4.4.60.0070.0307.99
4.4.50.0030.0237.99
4.4.40.0000.0278.00
4.4.30.0030.0338.00
4.4.20.0030.0338.00
4.4.10.0000.0178.00
4.4.00.0000.0308.00
4.3.110.0030.0178.00
4.3.100.0070.0308.00
4.3.90.0030.0278.00
4.3.80.0030.0508.00
4.3.70.0030.0278.00
4.3.60.0100.0108.00
4.3.50.0000.0208.00
4.3.40.0030.0378.00
4.3.30.0000.0408.00
4.3.20.0000.0378.00
4.3.10.0000.0308.00
4.3.00.0000.0208.00

preferences:
46.13 ms | 400 KiB | 5 Q