3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ParentClass { public function doSomething() { echo "done.\n"; } } class ChildClass extends ParentClass { public function doSomething() { echo "attempting something.\n"; parent::doSomething(); } } $obj = new ChildClass(); $obj->doSomething(); ?>

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.40.0160.00018.70
8.3.30.0110.00418.58
8.3.20.0040.00418.60
8.3.10.0040.00418.60
8.3.00.0040.00419.13
8.2.170.0140.00722.96
8.2.160.0080.00818.79
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00021.00
8.2.110.0030.00620.99
8.2.100.0040.00717.78
8.2.90.0000.00819.17
8.2.80.0000.00917.97
8.2.70.0060.00317.61
8.2.60.0040.00417.93
8.2.50.0040.00417.77
8.2.40.0030.00519.35
8.2.30.0030.00617.73
8.2.20.0080.00017.55
8.2.10.0030.00617.57
8.2.00.0000.00717.60
8.1.270.0080.00023.99
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00621.18
8.1.230.0040.00717.64
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0080.00017.62
8.1.160.0070.00019.03
8.1.150.0000.00718.67
8.1.140.0040.00417.32
8.1.130.0000.00719.17
8.1.120.0000.00717.42
8.1.110.0030.00317.46
8.1.100.0030.00617.39
8.1.90.0000.00717.41
8.1.80.0040.00417.35
8.1.70.0030.00317.41
8.1.60.0060.00317.58
8.1.50.0040.00417.45
8.1.40.0000.00817.54
8.1.30.0000.00717.65
8.1.20.0000.00717.59
8.1.10.0040.00417.48
8.1.00.0000.00717.45
8.0.300.0040.00418.77
8.0.290.0090.00016.75
8.0.280.0030.00318.57
8.0.270.0030.00517.29
8.0.260.0000.00716.82
8.0.250.0040.00416.93
8.0.240.0040.00416.82
8.0.230.0030.00516.82
8.0.220.0040.00416.82
8.0.210.0000.00616.82
8.0.200.0030.00316.79
8.0.190.0000.00716.85
8.0.180.0070.00416.86
8.0.170.0050.00316.73
8.0.160.0000.00716.70
8.0.150.0030.00616.73
8.0.140.0040.00716.76
8.0.130.0030.00313.25
8.0.120.0070.00316.71
8.0.110.0000.00716.89
8.0.100.0040.00416.76
8.0.90.0040.00416.70
8.0.80.0040.01116.78
8.0.70.0040.00416.82
8.0.60.0040.00416.88
8.0.50.0030.00516.66
8.0.30.0100.00717.19
8.0.20.0100.01016.97
8.0.10.0050.00216.89
8.0.00.0100.01216.53
7.4.330.0020.00212.98
7.4.320.0070.00016.44
7.4.300.0040.00416.61
7.4.290.0050.00516.51
7.4.280.0040.00416.46
7.4.270.0000.00716.57
7.4.260.0030.00313.27
7.4.250.0030.00516.44
7.4.240.0020.00516.49
7.4.230.0030.00316.58
7.4.220.0000.01816.59
7.4.210.0130.00316.64
7.4.200.0030.00316.71
7.4.190.0030.00516.55
7.4.160.0060.01116.38
7.4.150.0100.00716.39
7.4.140.0190.00517.86
7.4.130.0140.00716.60
7.4.120.0060.01216.51
7.4.110.0060.01316.45
7.4.100.0060.01216.53
7.4.90.0040.01416.58
7.4.80.0130.00416.54
7.4.70.0100.00716.51
7.4.60.0100.00716.63
7.4.50.0000.00916.56
7.4.40.0070.00716.54
7.4.30.0080.00816.42
7.4.00.0000.01615.09
7.3.330.0070.00013.17
7.3.320.0050.00013.02
7.3.310.0000.00616.20
7.3.300.0070.00016.11
7.3.290.0080.00916.18
7.3.280.0040.01116.18
7.3.270.0130.01016.40
7.3.260.0060.01016.18
7.3.240.0110.00616.19
7.3.230.0170.01016.48
7.3.210.0100.00616.28
7.3.200.0150.00419.39
7.3.190.0110.01116.50
7.3.180.0120.00316.50
7.3.170.0140.00716.46
7.3.160.0060.00916.29
7.3.120.0100.00714.51
7.2.330.0040.01316.57
7.2.320.0030.01316.69
7.2.310.0030.01816.34
7.2.300.0160.00616.73
7.2.290.0120.00616.53
7.1.100.0200.00717.73
7.1.70.0030.00316.74
7.1.60.0090.01519.25
7.1.50.0070.01816.88
7.1.00.0070.04022.54
7.0.200.0040.00416.65
7.0.140.0100.06721.95
7.0.120.0030.03022.03
7.0.60.0070.03720.03
7.0.50.0070.07717.86
7.0.40.0200.05020.15
7.0.30.0270.08320.23
7.0.20.0270.08020.17
7.0.10.0030.07020.12
7.0.00.0030.08320.23
5.6.280.0030.07320.82
5.6.210.0070.06020.70
5.6.200.0030.04018.25
5.6.190.0070.08020.77
5.6.180.0300.07320.64
5.6.170.0270.07020.71
5.6.160.0030.09020.55
5.6.150.0130.07318.14
5.6.140.0030.05718.14
5.6.130.0100.08018.18
5.6.120.0130.07721.14
5.6.110.0100.04021.03
5.6.100.0030.05020.99
5.6.90.0030.06720.96
5.6.80.0030.08320.50
5.5.350.3330.03020.47
5.5.340.0030.04317.98
5.5.330.0000.04720.39
5.5.320.0570.07320.28
5.5.310.0130.04720.37
5.5.300.0100.07317.98
5.5.290.0070.05017.98
5.5.280.0100.08020.77
5.5.270.0030.04320.77
5.5.260.0030.04020.79
5.5.250.0200.06720.47
5.5.240.0170.03320.07
5.4.450.0000.04319.57
5.4.440.0030.06319.33
5.4.430.0030.04019.32
5.4.420.0030.07719.40
5.4.410.0100.06019.12
5.4.400.0100.07318.87
5.4.390.0070.03719.14
5.4.380.0100.05019.24
5.4.370.0100.07318.87
5.4.360.0070.07019.01
5.4.350.0030.06718.96
5.4.340.0070.07318.92
5.4.320.0030.04019.14
5.4.310.0000.04319.12
5.4.300.0030.06319.00
5.4.290.0030.04719.14
5.4.280.0000.04318.85
5.4.270.0070.03719.08
5.4.260.0100.03319.09
5.4.250.0100.03019.23
5.4.240.0070.03319.07
5.4.230.0070.03319.23
5.4.220.0030.04019.11
5.4.210.0030.04019.14
5.4.200.0030.03719.23
5.4.190.0070.04019.13
5.4.180.0070.03319.14
5.4.170.0070.03319.20
5.4.160.0070.03319.21
5.4.150.0000.05019.27
5.4.140.0030.04316.38
5.4.130.0030.03316.55
5.4.120.0070.03016.44
5.4.110.0000.03716.39
5.4.100.0030.03316.48
5.4.90.0000.03716.48
5.4.80.0000.04016.38
5.4.70.0030.03716.50
5.4.60.0070.03316.45
5.4.50.0030.03316.36
5.4.40.0100.03016.48
5.4.30.0030.03316.43
5.4.20.0030.03316.34
5.4.10.0000.03716.40
5.4.00.0070.03015.75
5.3.290.0030.04714.71
5.3.280.0070.03314.67
5.3.270.0030.03714.63
5.3.260.0000.04014.75
5.3.250.0000.04714.61
5.3.240.0100.04314.64
5.3.230.0000.04014.67
5.3.220.0000.04014.72
5.3.210.0030.03714.64
5.3.200.0030.03714.72
5.3.190.0070.03314.46
5.3.180.0030.03714.63
5.3.170.0030.03714.71
5.3.160.0000.04014.62
5.3.150.0000.04014.48
5.3.140.0000.03714.56
5.3.130.0000.04014.57
5.3.120.0030.03714.71
5.3.110.0030.03714.57
5.3.100.0000.04014.20
5.3.90.0000.04314.04
5.3.80.0070.03014.10
5.3.70.0070.03313.91
5.3.60.0030.03314.00
5.3.50.0000.03713.96
5.3.40.0030.03714.02
5.3.30.0030.03313.84
5.3.20.0030.03713.74
5.3.10.0030.03313.68
5.3.00.0000.03713.54
5.2.170.0030.02711.32
5.2.160.0030.02711.17
5.2.150.0030.02711.16
5.2.140.0000.03011.09
5.2.130.0030.02711.26
5.2.120.0030.02711.17
5.2.110.0000.03011.11
5.2.100.0000.03311.10
5.2.90.0030.03011.12
5.2.80.0070.04711.09
5.2.70.0000.06011.04
5.2.60.0000.06311.22
5.2.50.0100.06010.97
5.2.40.0070.05010.97
5.2.30.0000.04010.98
5.2.20.0030.03710.88
5.2.10.0000.06310.78
5.2.00.0030.04710.77
5.1.60.0030.0539.90
5.1.50.0170.04310.05
5.1.40.0030.05710.12
5.1.30.0000.04010.34
5.1.20.0000.05310.27
5.1.10.0030.05710.02
5.1.00.0030.05010.05
5.0.50.0030.0478.61
5.0.40.0070.0308.48
5.0.30.0030.0508.21
5.0.20.0030.0408.29
5.0.10.0030.0278.24
5.0.00.0030.0508.07
4.4.90.0000.0177.87
4.4.80.0030.0137.87
4.4.70.0000.0207.87
4.4.60.0070.0137.87
4.4.50.0000.0207.87
4.4.40.0030.0237.87
4.4.30.0000.0407.87
4.4.20.0000.0237.87
4.4.10.0000.0407.87
4.4.00.0030.0537.87
4.3.110.0000.0207.87
4.3.100.0030.0337.87
4.3.90.0070.0177.87
4.3.80.0000.0507.87
4.3.70.0000.0177.87
4.3.60.0100.0277.87
4.3.50.0000.0207.87
4.3.40.0000.0307.87
4.3.30.0030.0337.87
4.3.20.0000.0307.87
4.3.10.0030.0277.87
4.3.00.0030.0277.87

preferences:
40.73 ms | 400 KiB | 5 Q