3v4l.org

run code in 300+ PHP versions simultaneously
<?php class dad { function dad() { // implements some logic } } class child extends dad { function child() { echo "I'm " , get_parent_class($this) , "'s son\n"; } } class child2 extends dad { function child2() { echo "I'm " , get_parent_class('child2') , "'s son too\n"; } } $foo = new child; $bar = new child2; ?>

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.00618.18
8.3.50.0130.00716.46
8.3.40.0090.00618.71
8.3.30.0140.00018.54
8.3.20.0060.00318.55
8.3.10.0080.00018.66
8.3.00.0090.00019.13
8.2.180.0070.00716.50
8.2.170.0130.00322.96
8.2.160.0090.00618.82
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00421.04
8.2.110.0060.00320.88
8.2.100.0040.00817.59
8.2.90.0040.00418.05
8.2.80.0080.00018.64
8.2.70.0060.00317.50
8.2.60.0040.00417.38
8.2.50.0050.00317.91
8.2.40.0080.00019.36
8.2.30.0040.00417.62
8.2.20.0030.00617.64
8.2.10.0040.00417.51
8.2.00.0020.00517.48
8.1.280.0070.00725.92
8.1.270.0090.00023.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0100.00019.44
8.1.230.0110.00020.85
8.1.220.0040.00418.63
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.11
8.1.180.0050.00318.10
8.1.170.0060.00317.62
8.1.160.0030.00318.96
8.1.150.0070.00018.57
8.1.140.0000.00817.37
8.1.130.0000.00719.04
8.1.120.0000.00717.41
8.1.110.0050.00217.37
8.1.100.0030.00317.38
8.1.90.0030.00517.45
8.1.80.0040.00417.43
8.1.70.0030.00317.34
8.1.60.0030.00617.52
8.1.50.0040.00417.29
8.1.40.0040.00417.35
8.1.30.0080.00017.57
8.1.20.0000.00717.61
8.1.10.0000.00817.37
8.1.00.0050.00317.41
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0000.00718.56
8.0.270.0030.00317.18
8.0.260.0000.00716.62
8.0.250.0030.00616.90
8.0.240.0040.00416.78
8.0.230.0000.00716.91
8.0.220.0000.00716.83
8.0.210.0000.00716.85
8.0.200.0040.00416.83
8.0.190.0030.00316.79
8.0.180.0050.00316.83
8.0.170.0000.00816.75
8.0.160.0030.00616.89
8.0.150.0000.00716.66
8.0.140.0000.00716.76
8.0.130.0030.00313.18
8.0.120.0000.00816.73
8.0.110.0030.00316.65
8.0.100.0030.00516.88
8.0.90.0000.00716.78
8.0.80.0060.01516.87
8.0.70.0000.00816.90
8.0.60.0000.00816.77
8.0.50.0000.00816.77
8.0.30.0150.00316.96
8.0.20.0140.01217.02
8.0.10.0040.00417.00
8.0.00.0100.00716.57
7.4.330.0020.00212.90
7.4.320.0060.00016.38
7.4.300.0030.00316.41
7.4.290.0070.00416.60
7.4.280.0050.00316.55
7.4.270.0070.00016.61
7.4.260.0030.00613.16
7.4.250.0040.00416.56
7.4.240.0030.00316.45
7.4.230.0000.00716.30
7.4.220.0090.00816.56
7.4.210.0130.00716.53
7.4.200.0030.00316.49
7.4.190.0060.00316.73
7.4.160.0080.00816.47
7.4.150.0100.01416.48
7.4.140.0150.00317.86
7.4.130.0140.00516.68
7.4.120.0070.01716.49
7.4.110.0170.00016.50
7.4.100.0110.00616.58
7.4.90.0140.00416.31
7.4.80.0130.00419.39
7.4.70.0090.01316.48
7.4.60.0090.00616.48
7.4.50.0040.00016.39
7.4.40.0060.01016.41
7.4.30.0070.01116.37
7.4.10.0080.00814.86
7.4.00.0050.01114.83
7.3.330.0060.00013.27
7.3.320.0030.00313.26
7.3.310.0040.00416.16
7.3.300.0030.00316.31
7.3.290.0070.00816.32
7.3.280.0110.00716.29
7.3.270.0120.00616.43
7.3.260.0090.01316.36
7.3.240.0130.00316.25
7.3.230.0030.01316.59
7.3.210.0000.01716.29
7.3.200.0070.01016.43
7.3.190.0130.00316.37
7.3.180.0070.01416.23
7.3.170.0070.01416.51
7.3.160.0200.00616.18
7.3.130.0000.01814.80
7.3.120.0100.00514.83
7.3.110.0030.01314.69
7.3.100.0060.00614.88
7.3.90.0030.01214.74
7.3.80.0070.00414.49
7.3.70.0040.00414.79
7.3.60.0000.01214.72
7.3.50.0030.01014.64
7.3.40.0030.00714.77
7.3.30.0030.00614.64
7.3.20.0030.00616.66
7.3.10.0030.01116.75
7.3.00.0100.00316.53
7.2.330.0100.00716.36
7.2.320.0090.00916.59
7.2.310.0150.00316.76
7.2.300.0100.00716.58
7.2.290.0070.01016.80
7.2.260.0070.01015.07
7.2.250.0090.00915.11
7.2.240.0060.00615.11
7.2.230.0030.00814.48
7.2.220.0120.00314.65
7.2.210.0000.01314.95
7.2.200.0040.00814.81
7.2.190.0030.00715.11
7.2.180.0150.00014.89
7.2.170.0120.00314.83
7.2.160.0030.00614.99
7.2.150.0000.01316.79
7.2.140.0100.01016.86
7.2.130.0000.01316.96
7.2.120.0060.00916.79
7.2.110.0090.00616.82
7.2.100.0060.01016.97
7.2.90.0040.01116.84
7.2.80.0080.00816.50
7.2.70.0080.00417.05
7.2.60.0420.01216.04
7.2.50.0040.01416.90
7.2.40.0110.00316.81
7.2.30.0040.01116.91
7.2.20.0030.01617.05
7.2.10.0090.00616.82
7.2.00.0040.01117.96
7.1.330.0030.01015.55
7.1.320.0090.00615.44
7.1.310.0040.01115.75
7.1.300.0040.00815.72
7.1.290.0060.00315.55
7.1.280.0000.01215.86
7.1.270.0090.00315.72
7.1.260.0100.00315.85
7.1.250.0100.00315.68
7.1.240.0110.00015.54
7.1.230.0040.00815.70
7.1.220.0060.00615.52
7.1.210.0070.00715.82
7.1.200.0060.00615.63
7.1.190.0070.00715.87
7.1.180.0030.01015.43
7.1.170.0030.01315.70
7.1.160.0110.00415.81
7.1.150.0110.00415.72
7.1.140.0000.01115.54
7.1.130.0070.00715.84
7.1.120.0000.01515.75
7.1.110.0030.00715.62
7.1.100.0020.01117.02
7.1.90.0090.00615.54
7.1.80.0000.00915.73
7.1.70.0040.00716.37
7.1.60.0080.00717.58
7.1.50.0100.00716.28
7.1.40.0000.01215.71
7.1.30.0060.00915.38
7.1.20.0060.01215.88
7.1.10.0060.00715.77
7.1.00.0020.03119.01
7.0.330.0100.00315.16
7.0.320.0090.00615.45
7.0.310.0000.00815.21
7.0.300.0090.00615.30
7.0.290.0030.00615.39
7.0.280.0130.00315.15
7.0.270.0030.01015.19
7.0.260.0030.01015.29
7.0.250.0030.00915.41
7.0.240.0060.00615.28
7.0.230.0000.01415.11
7.0.220.0060.00315.23
7.0.210.0000.01015.48
7.0.200.0030.00815.80
7.0.190.0040.00415.40
7.0.180.0030.01015.45
7.0.170.0070.00415.32
7.0.160.0030.01415.26
7.0.150.0000.01215.14
7.0.140.0030.04118.63
7.0.130.0070.00415.29
7.0.120.0030.04218.69
7.0.110.0070.00715.46
7.0.100.0050.00515.50
7.0.90.0030.01115.48
7.0.80.0070.00715.32
7.0.70.0070.00315.36
7.0.60.0050.04017.72
7.0.50.0080.03516.62
7.0.40.0110.02016.76
7.0.30.0270.02316.63
7.0.20.0170.04416.81
7.0.10.0070.04116.69
7.0.00.0070.04916.81
5.6.400.0120.00314.55
5.6.390.0000.01414.25
5.6.380.0070.00714.43
5.6.370.0060.00814.32
5.6.360.0060.00314.45
5.6.350.0030.00914.13
5.6.340.0070.01113.99
5.6.330.0040.01014.52
5.6.320.0040.00714.21
5.6.310.0030.00914.22
5.6.300.0030.00614.26
5.6.290.0040.00714.43
5.6.280.0050.03717.61
5.6.270.0140.00314.46
5.6.260.0060.00314.38
5.6.250.0030.00714.52
5.6.240.0040.00714.12
5.6.230.0140.00014.02
5.6.220.0070.00314.30
5.6.210.0030.04017.65
5.6.200.0060.04116.28
5.6.190.0120.02717.35
5.6.180.0200.04017.42
5.6.170.0150.03917.29
5.6.160.0060.04317.30
5.6.150.0020.03616.06
5.6.140.0040.02916.19
5.6.130.0020.02516.15
5.6.120.0050.03317.63
5.6.110.0050.02517.54
5.6.100.0070.04217.60
5.6.90.0050.03617.68
5.6.80.0090.03717.39
5.6.70.0140.00014.24
5.6.60.0030.00714.03
5.6.50.0040.00814.44
5.6.40.0030.01313.93
5.6.30.0110.00014.42
5.6.20.0100.00314.46
5.6.10.0030.00714.49
5.6.00.0100.01014.25
5.5.380.0090.00614.41
5.5.370.0090.00614.20
5.5.360.0060.00614.57
5.5.350.0060.04217.39
5.5.340.0080.03716.20
5.5.330.0070.04317.14
5.5.320.0200.02317.45
5.5.310.0200.04017.26
5.5.300.0100.02316.00
5.5.290.0040.03616.15
5.5.280.0060.03117.46
5.5.270.0100.02617.70
5.5.260.0090.03317.43
5.5.250.0020.04217.42
5.5.240.0210.03417.28
5.5.230.0060.00613.98
5.5.220.0000.01214.16
5.5.210.0100.00314.27
5.5.200.0070.01114.24
5.5.190.0100.00014.22
5.5.180.0000.00914.23
5.5.170.0000.01414.12
5.5.160.0150.00014.13
5.5.150.0050.00513.89
5.5.140.0070.01013.96
5.5.130.0000.01014.07
5.5.120.0140.00313.93
5.5.110.0040.00714.30
5.5.100.0160.00314.00
5.5.90.0030.01313.99
5.5.80.0030.00913.71
5.5.70.0060.00614.26
5.5.60.0070.00714.12
5.5.50.0000.01413.83
5.5.40.0120.00314.09
5.5.30.0030.01014.05
5.5.20.0060.00314.32
5.5.10.0000.01013.77
5.5.00.0060.00914.38
5.4.450.0020.02715.31
5.4.440.0030.02315.28
5.4.430.0060.02015.18
5.4.420.0020.02215.22
5.4.410.0080.01715.26
5.4.400.0050.02014.99
5.4.390.0090.03714.81
5.4.380.0060.01814.99
5.4.370.0100.02014.98
5.4.360.0020.02215.16
5.4.350.0020.02215.01
5.4.340.0050.02014.97
5.4.330.0040.00411.00
5.4.320.0020.02515.14
5.4.310.0030.02115.10
5.4.300.0020.02215.01
5.4.290.0050.02115.04
5.4.280.0020.02315.01
5.4.270.0050.02114.99
5.4.260.0050.02415.10
5.4.250.0040.02115.16
5.4.240.0050.02715.01
5.4.230.0000.02515.05
5.4.220.0040.03214.87
5.4.210.0060.04115.24
5.4.200.0000.02715.10
5.4.190.0070.02815.17
5.4.180.0080.03815.13
5.4.170.0020.02515.07
5.4.160.0070.02214.82
5.4.150.0050.04114.92
5.4.140.0030.03713.70
5.4.130.0000.02713.77
5.4.120.0050.04013.89
5.4.110.0080.03813.54
5.4.100.0060.02313.78
5.4.90.0070.02813.86
5.4.80.0050.04013.78
5.4.70.0030.02113.62
5.4.60.0050.04013.81
5.4.50.0000.02613.72
5.4.40.0030.03813.63
5.4.30.0080.03813.80
5.4.20.0090.03713.48
5.4.10.0080.03813.62
5.4.00.0040.04013.42
5.3.290.0030.02412.67
5.3.280.0020.04012.57
5.3.270.0050.03812.64
5.3.260.0100.04512.64
5.3.250.0030.02612.59
5.3.240.0070.03812.65
5.3.230.0140.02112.60
5.3.220.0070.04112.56
5.3.210.0040.03812.51
5.3.200.0000.04712.51
5.3.190.0080.04312.56
5.3.180.0070.02312.59
5.3.170.0100.03812.59
5.3.160.0080.02012.58
5.3.150.0050.01812.57
5.3.140.0080.02712.63
5.3.130.0070.02512.58
5.3.120.0070.03612.56
5.3.110.0070.03212.55
5.3.100.0080.03512.37
5.3.90.0080.02512.36
5.3.80.0030.04312.36
5.3.70.0050.02212.29
5.3.60.0070.04312.28
5.3.50.0050.03712.29
5.3.40.0110.03212.25
5.3.30.0080.03012.30
5.3.20.0080.03712.08
5.3.10.0020.03212.13
5.3.00.0050.02012.06
5.2.170.0000.04011.16
5.2.160.0070.06011.22
5.2.150.0070.06311.11
5.2.140.0100.02711.22
5.2.130.0100.02711.19
5.2.120.0100.03711.07
5.2.110.0000.07011.16
5.2.100.0100.05311.08
5.2.90.0070.05011.16
5.2.80.0000.04011.07
5.2.70.0030.03711.04
5.2.60.0030.06011.06
5.2.50.0100.05310.92
5.2.40.0030.04710.96
5.2.30.0070.03711.13
5.2.20.0100.04010.97
5.2.10.0100.05710.79
5.2.00.0000.05710.68
5.1.60.0030.05710.00
5.1.50.0000.06010.00
5.1.40.0070.02710.13
5.1.30.0070.06010.30
5.1.20.0070.03710.24
5.1.10.0000.04710.12
5.1.00.0070.02710.05
5.0.50.0030.0408.71
5.0.40.0000.0238.50
5.0.30.0000.0638.30
5.0.20.0030.0308.22
5.0.10.0030.0438.15
5.0.00.0030.0638.31
4.4.90.0100.0208.04
4.4.80.0070.0338.04
4.4.70.0030.0378.04
4.4.60.0000.0408.04
4.4.50.0070.0338.04
4.4.40.0030.0538.04
4.4.30.0030.0338.04
4.4.20.0000.0408.04
4.4.10.0070.0378.04
4.4.00.0030.0578.04
4.3.110.0000.0208.04
4.3.100.0000.0408.04
4.3.90.0030.0338.04
4.3.80.0070.0508.04
4.3.70.0030.0238.04
4.3.60.0000.0308.04
4.3.50.0030.0178.04
4.3.40.0000.0308.04
4.3.30.0000.0308.04
4.3.20.0000.0238.04
4.3.10.0000.0308.04
4.3.00.0000.0208.04

preferences:
50.9 ms | 401 KiB | 5 Q