3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myParent { private 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.70.0070.01018.31
8.3.60.0120.00918.56
8.3.50.0150.00021.02
8.3.40.0100.00718.88
8.3.30.0040.01118.67
8.3.20.0080.00018.77
8.3.10.0040.00420.67
8.3.00.0030.00719.38
8.2.180.0130.00716.63
8.2.170.0000.01422.96
8.2.160.0130.00722.12
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00019.77
8.2.110.0030.00621.18
8.2.100.0040.00817.84
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0000.00817.91
8.2.50.0000.00818.07
8.2.40.0000.00718.16
8.2.30.0030.00619.83
8.2.20.0000.00717.71
8.2.10.0080.00017.75
8.2.00.0030.00717.79
8.1.280.0150.00325.92
8.1.270.0050.00323.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0040.00422.42
8.1.230.0060.00620.96
8.1.220.0040.00418.77
8.1.210.0080.00018.82
8.1.200.0030.00617.35
8.1.190.0040.00417.40
8.1.180.0000.00818.10
8.1.170.0000.00818.76
8.1.160.0040.00418.74
8.1.150.0000.00718.57
8.1.140.0000.00717.26
8.1.130.0030.00317.82
8.1.120.0080.00017.27
8.1.110.0070.00017.24
8.1.100.0040.00417.39
8.1.90.0000.00817.32
8.1.80.0040.00417.31
8.1.70.0000.00717.28
8.1.60.0050.00317.49
8.1.50.0040.00417.46
8.1.40.0030.00517.55
8.1.30.0040.00417.61
8.1.20.0060.00317.66
8.1.10.0000.00717.43
8.1.00.0000.00817.50
8.0.300.0050.00519.91
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0030.00317.15
8.0.260.0030.00316.71
8.0.250.0040.00416.84
8.0.240.0040.00416.94
8.0.230.0000.00716.95
8.0.220.0090.00016.87
8.0.210.0040.00416.75
8.0.200.0030.00316.94
8.0.190.0050.00216.85
8.0.180.0000.00816.93
8.0.170.0030.00616.91
8.0.160.0080.00016.92
8.0.150.0000.00916.73
8.0.140.0100.00316.75
8.0.130.0030.00313.41
8.0.120.0000.00716.84
8.0.110.0080.00016.72
8.0.100.0040.00416.92
8.0.90.0050.00316.86
8.0.80.0070.00716.85
8.0.70.0070.00016.89
8.0.60.0050.00316.75
8.0.50.0000.00716.93
8.0.30.0090.01517.18
8.0.20.0110.00617.40
8.0.10.0030.00517.08
8.0.00.0110.00816.94
7.4.330.0030.00313.43
7.4.320.0070.00016.34
7.4.300.0030.00316.61
7.4.290.0000.00816.59
7.4.280.0020.00516.61
7.4.270.0040.00416.52
7.4.260.0040.00413.27
7.4.250.0030.00516.41
7.4.240.0000.00816.60
7.4.230.0040.00416.59
7.4.220.0120.00616.57
7.4.210.0100.00916.55
7.4.200.0030.00316.50
7.4.190.0070.00016.41
7.4.160.0120.00416.53
7.4.150.0060.01217.40
7.4.140.0050.01217.29
7.4.130.0060.01116.57
7.4.120.0090.00916.64
7.4.110.0090.00916.43
7.4.100.0110.01116.35
7.4.90.0030.01316.61
7.4.80.0060.01219.03
7.4.70.0090.00916.44
7.4.60.0060.01016.73
7.4.50.0050.00316.42
7.4.40.0090.00922.27
7.4.30.0150.00316.68
7.4.00.0080.00814.94
7.3.330.0060.00013.34
7.3.320.0060.00013.19
7.3.310.0030.00316.35
7.3.300.0030.00316.24
7.3.290.0130.00616.43
7.3.280.0090.00716.33
7.3.270.0170.00617.40
7.3.260.0080.00918.24
7.3.250.0130.00816.35
7.3.240.0110.00616.30
7.3.230.0100.00616.39
7.3.210.0060.00916.39
7.3.200.0070.01019.39
7.3.190.0030.01416.52
7.3.180.0030.01416.48
7.3.170.0120.00916.36
7.3.160.0030.01216.43
7.3.120.0100.00414.70
7.3.110.0070.01014.49
7.3.100.0070.00714.63
7.3.90.0050.00514.72
7.3.80.0090.00614.73
7.3.70.0050.00314.45
7.3.60.0070.00414.85
7.3.50.0110.00414.86
7.3.40.0000.00814.70
7.3.30.0140.00014.73
7.3.20.0070.00716.69
7.3.10.0140.00516.22
7.3.00.0100.00816.36
7.2.330.0190.00316.37
7.2.320.0130.00316.37
7.2.310.0100.00716.33
7.2.300.0040.01416.63
7.2.290.0140.00316.56
7.2.250.0090.00914.86
7.2.240.0120.00615.05
7.2.230.0070.00714.85
7.2.220.0040.01114.86
7.2.210.0030.01215.01
7.2.200.0030.01015.12
7.2.190.0080.00415.04
7.2.180.0030.00614.76
7.2.170.0030.00514.90
7.2.130.0160.00616.83
7.2.120.0180.00416.32
7.2.110.0100.01016.16
7.2.100.0180.00716.25
7.2.90.0090.01416.30
7.2.80.0210.00616.60
7.2.70.0170.00816.64
7.2.60.0120.00616.44
7.2.50.0150.01116.40
7.2.40.0150.00716.19
7.2.30.0240.00516.45
7.2.20.0200.00616.48
7.2.10.0120.00716.34
7.2.00.0110.00918.00
7.1.330.0070.01015.35
7.1.320.0070.00715.35
7.1.310.0000.01115.63
7.1.300.0000.01615.34
7.1.290.0030.01115.63
7.1.280.0030.00915.63
7.1.270.0030.01015.67
7.1.260.0090.00315.66
7.1.250.0140.00715.11
7.1.200.0060.00915.35
7.1.100.0030.00918.25
7.1.70.0000.01916.90
7.1.60.0070.00719.40
7.1.50.0060.00616.54
7.1.00.0070.03022.45
7.0.200.0300.00414.48
7.0.140.0000.07722.17
7.0.60.0030.04019.93
7.0.50.0070.04017.89
7.0.40.0130.07717.82
7.0.30.0030.04317.84
7.0.20.0130.07317.80
7.0.10.0100.06317.75
7.0.00.0030.09017.80
5.6.280.0000.07021.07
5.6.210.0130.05320.48
5.6.200.0100.04018.19
5.6.190.0070.07018.18
5.6.180.0130.07318.27
5.6.170.0130.07318.16
5.6.160.0100.07718.23
5.6.150.0070.06318.18
5.6.140.0070.07718.21
5.6.130.0000.08718.28
5.6.120.0100.05318.19
5.6.110.0070.08718.23
5.6.100.0070.08718.18
5.6.90.0070.07018.10
5.6.80.0100.07317.52
5.6.70.0030.08317.60
5.6.60.0100.07717.59
5.6.50.0030.04017.67
5.6.40.0070.07717.63
5.6.30.0070.03717.63
5.6.20.0030.04017.55
5.6.10.0130.07317.50
5.6.00.0070.05717.61
5.5.350.0400.06320.50
5.5.340.0100.06317.97
5.5.330.0170.07017.99
5.5.320.0130.04318.05
5.5.310.0100.05317.97
5.5.300.0000.06017.96
5.5.290.0070.05017.97
5.5.280.0000.04718.02
5.5.270.0100.07717.93
5.5.260.0030.08717.98
5.5.250.0070.08017.76
5.5.240.0130.04317.34
5.5.230.0100.07317.36
5.5.220.0070.04717.45
5.5.210.0070.07717.52
5.5.200.0100.05017.31
5.5.190.0100.06717.39
5.5.180.0000.04717.37
5.5.160.0100.07317.39
5.5.150.0100.07317.44
5.5.140.0070.04317.34
5.5.130.0100.07317.27
5.5.120.0130.04717.27
5.5.110.0000.05717.29
5.5.100.0100.03317.20
5.5.90.0130.03317.21
5.5.80.0030.03717.33
5.5.70.0000.04017.32
5.5.60.0100.03017.21
5.5.50.0000.04017.25
5.5.40.0030.03717.25
5.5.30.0030.03717.20
5.5.20.0000.04017.19
5.5.10.0070.03317.20
5.5.00.0030.03717.24
5.4.450.0100.06719.45
5.4.440.0030.04319.23
5.4.430.0070.05319.35
5.4.420.0130.07319.35
5.4.410.0100.07319.31
5.4.400.0130.07019.02
5.4.390.0130.07319.13
5.4.380.0170.06719.27
5.4.370.0130.06319.27
5.4.360.0130.04019.03
5.4.350.0100.03019.10
5.4.340.0130.06019.02
5.4.320.0070.06318.90
5.4.310.0070.08019.05
5.4.300.0030.07019.00
5.4.290.0170.07018.98
5.4.280.0030.07019.04
5.4.270.0030.04719.02
5.4.260.0070.04018.90
5.4.250.0070.03319.01
5.4.240.0000.04019.12
5.4.230.0030.03718.98
5.4.220.0000.04019.05
5.4.210.0070.03319.02
5.4.200.0070.03318.98
5.4.190.0130.02719.26
5.4.180.0000.04018.87
5.4.170.0030.03719.04
5.4.160.0030.03719.01
5.4.150.0030.03719.12
5.4.140.0000.03716.52
5.4.130.0100.03016.37
5.4.120.0000.03716.45
5.4.110.0070.03016.50
5.4.100.0030.03316.51
5.4.90.0000.03716.49
5.4.80.0030.03316.49
5.4.70.0030.03316.63
5.4.60.0070.03316.43
5.4.50.0030.03316.56
5.4.40.0030.03316.43
5.4.30.0030.03316.42
5.4.20.0030.03316.40
5.4.10.0100.07016.42
5.4.00.0100.07015.83
5.3.290.0100.07014.69
5.3.280.0030.03714.65
5.3.270.0030.04014.71
5.3.260.0030.04014.66
5.3.250.0030.03714.63
5.3.240.0100.02714.47
5.3.230.0000.04014.82
5.3.220.0070.03314.79
5.3.210.0070.03314.43
5.3.200.0100.03014.65
5.3.190.0070.03714.68
5.3.180.0000.04314.43
5.3.170.0070.03714.42
5.3.160.0000.04314.53
5.3.150.0100.03014.53
5.3.140.0030.03714.67
5.3.130.0030.03714.61
5.3.120.0030.03714.57
5.3.110.0100.05014.64
5.3.100.0170.06314.00
5.3.90.0030.07714.07
5.3.80.0000.05314.06
5.3.70.0030.03714.04
5.3.60.0070.07714.09
5.3.50.0070.03713.84
5.3.40.0030.03713.95
5.3.30.0070.04013.97
5.3.20.0000.05013.74
5.3.10.0070.03313.68
5.3.00.0130.07013.50
5.2.170.0070.06011.00
5.2.160.0000.03011.20
5.2.150.0030.03311.13
5.2.140.0030.05311.36
5.2.130.0030.03010.98
5.2.120.0070.04710.95
5.2.110.0030.05311.10
5.2.100.0100.05711.07
5.2.90.0000.06011.21
5.2.80.0070.03311.09
5.2.70.0000.05311.09
5.2.60.0030.06011.06
5.2.50.0070.03311.01
5.2.40.0030.03311.03
5.2.30.0030.05010.95
5.2.20.0000.04010.96
5.2.10.0030.06710.91
5.2.00.0030.03010.69
5.1.60.0030.04710.05
5.1.50.0000.0409.91
5.1.40.0070.0579.98
5.1.30.0030.06010.38
5.1.20.0030.06010.40
5.1.10.0070.02710.12
5.1.00.0030.05010.12
5.0.50.0030.0209.14
5.0.40.0030.0209.14
5.0.30.0000.0579.14
5.0.20.0000.0209.14
5.0.10.0030.0179.14
5.0.00.0000.0309.14
4.4.90.0000.0179.14
4.4.80.0000.0209.14
4.4.70.0000.0179.14
4.4.60.0030.0239.14
4.4.50.0030.0309.14
4.4.40.0130.0309.14
4.4.30.0030.0339.14
4.4.20.0000.0209.14
4.4.10.0000.0379.14
4.4.00.0030.0239.14
4.3.110.0030.0279.14
4.3.100.0030.0379.14
4.3.90.0070.0339.14
4.3.80.0000.0379.14
4.3.70.0070.0209.14
4.3.60.0000.0179.14
4.3.50.0000.0179.14
4.3.40.0000.0309.14
4.3.30.0030.0139.14
4.3.20.0000.0209.14
4.3.10.0000.0409.14
4.3.00.0030.0239.14

preferences:
33.65 ms | 401 KiB | 5 Q