3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myParent { protected function foo() { echo 'parent foo'; } } class mySon extends myParent { //private function foo() { echo 'son foo'; } } class myDaughter extends myParent { public function bar() { $son = new mySon; $son->foo(); } } $daughter = new myDaughter; $daughter->bar(); // prints "son foo"

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.0150.00318.30
8.3.50.0150.00521.93
8.3.40.0100.01018.79
8.3.30.0090.00618.58
8.3.20.0030.00518.69
8.3.10.0000.00820.80
8.3.00.0050.00221.89
8.2.180.0060.01218.42
8.2.170.0110.00422.96
8.2.160.0000.01320.30
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00019.89
8.2.110.0030.00622.08
8.2.100.0070.00417.72
8.2.90.0040.00419.10
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0000.00718.03
8.2.30.0050.00219.84
8.2.20.0040.00417.48
8.2.10.0040.00417.68
8.2.00.0030.00717.67
8.1.280.0030.01625.92
8.1.270.0060.00323.99
8.1.260.0090.00926.35
8.1.250.0030.00528.09
8.1.240.0060.00322.55
8.1.230.0120.00020.88
8.1.220.0090.00018.77
8.1.210.0030.00618.89
8.1.200.0000.00817.23
8.1.190.0040.00417.41
8.1.180.0050.00318.10
8.1.170.0030.00618.52
8.1.160.0050.00218.70
8.1.150.0050.00218.52
8.1.140.0000.00817.31
8.1.130.0070.00017.73
8.1.120.0000.00717.29
8.1.110.0040.00417.39
8.1.100.0000.00717.29
8.1.90.0030.00517.43
8.1.80.0030.00617.38
8.1.70.0030.00317.41
8.1.60.0040.00417.59
8.1.50.0030.00617.34
8.1.40.0050.00317.53
8.1.30.0080.00017.62
8.1.20.0030.00617.48
8.1.10.0080.00017.62
8.1.00.0000.00817.57
8.0.300.0080.00019.98
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0030.00317.26
8.0.260.0030.00316.79
8.0.250.0000.00716.83
8.0.240.0000.00916.90
8.0.230.0030.00316.93
8.0.220.0070.00016.86
8.0.210.0030.00316.87
8.0.200.0000.00716.78
8.0.190.0000.00716.89
8.0.180.0060.00316.86
8.0.170.0000.00716.74
8.0.160.0080.00016.80
8.0.150.0040.00416.85
8.0.140.0050.00216.68
8.0.130.0000.00713.22
8.0.120.0040.00416.69
8.0.110.0090.00016.89
8.0.100.0000.00716.76
8.0.90.0050.00316.71
8.0.80.0070.00716.75
8.0.70.0000.00716.93
8.0.60.0080.00016.83
8.0.50.0000.00716.70
8.0.30.0060.01117.16
8.0.20.0190.00317.40
8.0.10.0050.00216.79
8.0.00.0120.00816.78
7.4.330.0020.00214.82
7.4.320.0000.00716.39
7.4.300.0030.00316.51
7.4.290.0030.00316.49
7.4.280.0030.00316.52
7.4.270.0070.00016.47
7.4.260.0030.00313.26
7.4.250.0040.00416.54
7.4.240.0040.00416.53
7.4.230.0070.00016.30
7.4.220.0040.01416.65
7.4.210.0070.00816.56
7.4.200.0040.00416.53
7.4.190.0000.00716.64
7.4.160.0000.01616.48
7.4.150.0100.01017.40
7.4.140.0110.01017.86
7.4.130.0150.00316.44
7.4.120.0090.00916.51
7.4.110.0110.00816.49
7.4.100.0030.01316.54
7.4.90.0050.01416.65
7.4.80.0100.01019.37
7.4.70.0070.01016.54
7.4.60.0060.01516.56
7.4.50.0060.00316.22
7.4.40.0150.00022.52
7.4.30.0030.01316.20
7.4.00.0060.00915.11
7.3.330.0000.00513.07
7.3.320.0000.00613.26
7.3.310.0040.00416.21
7.3.300.0030.00316.11
7.3.290.0040.01016.25
7.3.280.0100.00816.24
7.3.270.0130.00417.40
7.3.260.0160.00918.24
7.3.250.0060.01116.37
7.3.240.0100.00716.21
7.3.230.0060.01016.39
7.3.210.0100.00716.18
7.3.200.0110.00819.39
7.3.190.0130.00316.49
7.3.180.0060.01016.36
7.3.170.0030.01416.44
7.3.160.0040.01116.30
7.3.120.0030.01014.89
7.2.330.0030.01616.43
7.2.320.0100.01016.46
7.2.310.0060.01316.67
7.2.300.0120.00416.46
7.2.290.0070.01016.75
7.2.60.0130.00016.94
7.1.200.0080.00315.48
7.1.100.0050.00818.05
7.1.70.0110.00417.15
7.1.60.0040.01919.40
7.1.50.0180.00716.71
7.1.00.0030.03322.40
7.0.200.0000.00716.77
7.0.140.0070.06721.95
7.0.70.0130.07021.73
7.0.60.0000.08321.66
7.0.50.0030.08022.12
7.0.40.0030.08719.95
7.0.30.0070.07720.11
7.0.20.0000.05320.08
7.0.10.0100.07020.10
7.0.00.0000.08719.99
5.6.280.0030.07320.91
5.6.220.0100.08020.63
5.6.210.0070.08020.63
5.6.200.0030.09020.93
5.6.190.0070.07321.13
5.6.180.0070.07720.96
5.6.170.0070.06721.07
5.6.160.0030.08721.08
5.6.150.0070.08321.07
5.6.140.0030.08321.02
5.6.130.0130.08021.03
5.6.120.0000.09021.02
5.6.110.0000.07320.95
5.6.100.0030.05021.03
5.6.90.0030.06021.00
5.6.80.0030.08020.49
5.6.70.0070.07720.47
5.6.60.0070.06320.36
5.6.50.0070.07720.41
5.6.40.0000.07020.48
5.6.30.0030.08720.40
5.6.20.0100.07320.36
5.6.10.0030.06020.36
5.6.00.0070.05320.48
5.5.360.0070.08020.42
5.5.350.0070.07720.41
5.5.340.0030.08020.92
5.5.330.0100.07720.89
5.5.320.0030.08020.88
5.5.310.0000.06320.84
5.5.300.0000.07320.83
5.5.290.0030.06720.85
5.5.280.0100.08020.65
5.5.270.0030.07320.80
5.5.260.0000.08720.87
5.5.250.0070.08320.69
5.5.240.0000.08720.29
5.5.230.0030.05020.25
5.5.220.0030.04720.17
5.5.210.0000.08320.21
5.5.200.0100.07320.16
5.5.190.0000.05320.19
5.5.180.0030.04320.24
5.5.160.0130.07320.27
5.5.150.0000.07720.19
5.5.140.0030.07720.14
5.5.130.0030.06320.18
5.5.120.0130.07020.28
5.5.110.0100.07720.07
5.5.100.0070.07320.02
5.5.90.0070.07320.11
5.5.80.0000.06020.07
5.5.70.0030.05719.97
5.5.60.0070.08020.16
5.5.50.0000.08319.96
5.5.40.0070.06020.14
5.5.30.0030.07720.09
5.5.20.0100.07720.15
5.5.10.0070.07320.05
5.5.00.0030.08020.04
5.4.450.0100.07319.23
5.4.440.0070.08019.37
5.4.430.0030.07019.55
5.4.420.0030.05719.14
5.4.410.0030.06719.23
5.4.400.0070.05319.18
5.4.390.0100.06019.03
5.4.380.0100.03319.13
5.4.370.0030.07318.88
5.4.360.0100.07319.18
5.4.350.0000.08018.95
5.4.340.0030.07318.90
5.4.320.0070.08018.87
5.4.310.0030.08018.95
5.4.300.0070.07319.17
5.4.290.0070.03719.04
5.4.280.0100.07318.90
5.4.270.0100.07719.16
5.4.260.0030.07019.13
5.4.250.0070.07719.18
5.4.240.0030.04019.02
5.4.230.0030.05318.90
5.4.220.0030.05019.23
5.4.210.0030.08019.02
5.4.200.0070.06719.02
5.4.190.0030.05719.16
5.4.180.0100.06719.04
5.4.170.0070.07318.89
5.4.160.0000.07019.01
5.4.150.0130.06719.03
5.4.140.0070.05016.39
5.4.130.0000.08316.50
5.4.120.0030.07016.25
5.4.110.0030.04716.55
5.4.100.0070.06716.54
5.4.90.0070.07016.45
5.4.80.0030.07716.42
5.4.70.0000.06716.38
5.4.60.0070.06716.29
5.4.50.0030.07316.32
5.4.40.0070.07316.46
5.4.30.0130.06016.42
5.4.20.0030.06716.33
5.4.10.0070.04316.44
5.4.00.0000.08015.84
5.3.290.0030.07714.75
5.3.280.0070.05314.66
5.3.270.0100.07014.57
5.3.260.0100.07314.73
5.3.250.0030.07714.61
5.3.240.0000.04014.61
5.3.230.0000.07714.66
5.3.220.0030.07314.54
5.3.210.0030.07714.54
5.3.200.0000.08014.55
5.3.190.0000.07714.62
5.3.180.0030.06014.71
5.3.170.0070.06014.66
5.3.160.0030.06314.61
5.3.150.0070.07314.46
5.3.140.0000.05714.48
5.3.130.0030.08014.53
5.3.120.0030.07714.66
5.3.110.0100.07314.54
5.3.100.0030.08014.18
5.3.90.0030.07313.98
5.3.80.0070.07313.91
5.3.70.0130.03314.09
5.3.60.0000.07714.02
5.3.50.0000.06313.86
5.3.40.0000.07713.88
5.3.30.0030.05313.83
5.3.20.0030.07013.62
5.3.10.0030.03713.69
5.3.00.0230.06013.62
5.2.170.0070.04312.25
5.2.160.0070.06012.25
5.2.150.0000.06712.25
5.2.140.0000.03712.25
5.2.130.0030.04712.25
5.2.120.0000.04312.25
5.2.110.0030.03312.25
5.2.100.0070.03012.25
5.2.90.0000.06712.25
5.2.80.0130.05312.25
5.2.70.0000.03712.25
5.2.60.0000.05312.25
5.2.50.0030.06012.25
5.2.40.0070.05312.25
5.2.30.0000.04712.25
5.2.20.0070.05012.25
5.2.10.0000.05712.25
5.2.00.0070.03712.25
5.1.60.0000.03312.25
5.1.50.0030.05312.25
5.1.40.0030.05012.25
5.1.30.0000.05712.25
5.1.20.0000.04012.25
5.1.10.0030.05712.25
5.1.00.0000.04712.25
5.0.50.0000.04012.25
5.0.40.0000.03712.25
5.0.30.0030.06712.25
5.0.20.0070.04012.25
5.0.10.0000.04312.25
5.0.00.0030.06312.25
4.4.90.0000.02712.25
4.4.80.0030.03312.25
4.4.70.0000.02712.25
4.4.60.0000.03712.25
4.4.50.0000.04012.25
4.4.40.0000.02712.25
4.4.30.0000.03712.25
4.4.20.0000.03312.25
4.4.10.0000.03312.25
4.4.00.0030.05312.25
4.3.110.0030.02312.25
4.3.100.0000.02712.25
4.3.90.0030.03012.25
4.3.80.0000.05312.25
4.3.70.0000.02312.25
4.3.60.0000.02312.25
4.3.50.0000.02012.25
4.3.40.0000.03712.25
4.3.30.0070.02712.25
4.3.20.0030.03012.25
4.3.10.0030.03312.25
4.3.00.0030.03312.25

preferences:
42.82 ms | 401 KiB | 5 Q