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"; parrent::child(); } } class child2 extends dad { function child2() { echo "I'm " , get_parent_class('child2') , "'s son too\n"; } } $foo = new child(); $foo->child(); $bar = new child2(); $bar->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.0130.00618.56
8.3.50.0130.00417.44
8.3.40.0140.00018.57
8.3.30.0030.01218.79
8.3.20.0000.00918.77
8.3.10.0050.00320.48
8.3.00.0110.00317.63
8.2.180.0130.00416.50
8.2.170.0090.00922.96
8.2.160.0100.00319.33
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0070.01019.89
8.2.110.0100.00020.95
8.2.100.0090.00317.78
8.2.90.0000.00920.96
8.2.80.0000.00717.93
8.2.70.0060.00317.63
8.2.60.0090.00018.04
8.2.50.0030.00618.07
8.2.40.0080.00019.82
8.2.30.0000.00718.04
8.2.20.0040.00417.76
8.2.10.0060.00317.68
8.2.00.0060.00317.55
8.1.280.0120.00925.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00320.75
8.1.230.0120.00020.78
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0070.00317.13
8.1.190.0040.00417.66
8.1.180.0060.00318.10
8.1.170.0030.00618.84
8.1.160.0000.00718.86
8.1.150.0050.00318.48
8.1.140.0000.00817.41
8.1.130.0070.00017.69
8.1.120.0000.00717.43
8.1.110.0070.00017.37
8.1.100.0030.00317.42
8.1.90.0070.00017.44
8.1.80.0000.00717.40
8.1.70.0050.00317.28
8.1.60.0030.00517.46
8.1.50.0040.00417.46
8.1.40.0050.00217.55
8.1.30.0000.00717.54
8.1.20.0060.00317.54
8.1.10.0030.00517.45
8.1.00.0050.00517.39
8.0.300.0040.00419.80
8.0.290.0000.00716.88
8.0.280.0030.00318.35
8.0.270.0040.00417.19
8.0.260.0030.00316.89
8.0.250.0080.00017.05
8.0.240.0000.01217.00
8.0.230.0050.00316.88
8.0.220.0000.00816.79
8.0.210.0050.00316.75
8.0.200.0000.00716.83
8.0.190.0030.00316.93
8.0.180.0040.00416.91
8.0.170.0080.00016.95
8.0.160.0000.00716.89
8.0.150.0000.00716.90
8.0.140.0070.00416.91
8.0.130.0000.00713.27
8.0.120.0000.00716.75
8.0.110.0000.00716.89
8.0.100.0030.00316.89
8.0.90.0040.00416.71
8.0.80.0120.00316.91
8.0.70.0070.00016.96
8.0.60.0050.00316.84
8.0.50.0040.00416.89
8.0.30.0080.01017.21
8.0.20.0140.00817.13
8.0.10.0030.00516.86
8.0.00.0110.00716.75
7.4.330.0000.00512.85
7.4.320.0000.00716.32
7.4.300.0030.00316.38
7.4.290.0000.00716.52
7.4.280.0090.00016.52
7.4.270.0050.00316.54
7.4.260.0000.00513.21
7.4.250.0040.00416.49
7.4.240.0030.00516.42
7.4.230.0000.00716.51
7.4.220.0190.00316.53
7.4.210.0060.01016.45
7.4.200.0070.00016.33
7.4.190.0070.00016.30
7.4.160.0080.00816.39
7.4.150.0090.00916.49
7.4.140.0100.00916.58
7.4.130.0120.00416.63
7.4.120.0050.01216.46
7.4.110.0090.00916.48
7.4.100.0060.01216.44
7.4.90.0120.00916.50
7.4.80.0000.02216.51
7.4.70.0000.01716.34
7.4.60.0140.00316.51
7.4.50.0000.00616.53
7.4.40.0080.00816.37
7.4.30.0100.00716.57
7.4.00.0060.00914.84
7.3.330.0030.00313.23
7.3.320.0020.00213.21
7.3.310.0000.00716.47
7.3.300.0030.00316.38
7.3.290.0130.00716.36
7.3.280.0070.00916.37
7.3.270.0130.00416.64
7.3.260.0060.01516.45
7.3.250.0100.01216.44
7.3.240.0140.00316.52
7.3.230.0160.00016.60
7.3.210.0030.01416.43
7.3.200.0170.00619.39
7.3.190.0040.01416.47
7.3.180.0060.00916.30
7.3.170.0040.01216.34
7.3.160.0060.01016.56
7.3.120.0030.01014.81
7.2.330.0180.00716.58
7.2.320.0080.00816.52
7.2.310.0150.01316.52
7.2.300.0100.00716.41
7.2.290.0090.00916.45
7.2.80.0310.00916.11
7.2.60.0090.00316.69
7.1.200.0000.01515.74
7.1.100.0070.00717.88
7.1.70.0040.00417.02
7.1.60.0100.01319.40
7.1.50.0090.01217.05
7.1.00.0000.07022.24
7.0.200.0000.00716.85
7.0.140.0100.06321.96
7.0.120.0000.07322.09
7.0.60.0070.04019.93
7.0.50.0000.06317.94
7.0.40.0130.05020.21
7.0.30.0230.08720.07
7.0.20.0170.04320.03
7.0.10.0070.04320.06
7.0.00.0000.04320.08
5.6.280.0030.07321.11
5.6.210.0130.05320.46
5.6.200.0070.05318.29
5.6.190.0070.08720.46
5.6.180.0530.06720.64
5.6.170.0200.08320.56
5.6.160.0130.03320.61
5.6.150.0100.08018.28
5.6.140.0030.08318.33
5.6.130.0030.04018.13
5.6.120.0000.07721.03
5.6.110.0130.08720.96
5.6.100.0030.05721.00
5.6.90.0000.08721.13
5.6.80.0070.05720.26
5.5.350.0070.07020.41
5.5.340.0070.05017.97
5.5.330.0070.08320.37
5.5.320.0700.06020.27
5.5.310.0230.08020.29
5.5.300.0030.08018.08
5.5.290.0030.05017.95
5.5.280.0100.05320.99
5.5.270.0100.05020.66
5.5.260.0070.08720.96
5.5.250.0070.08020.59
5.5.240.0130.04320.16
5.4.450.0070.05019.47
5.4.440.0130.06319.30
5.4.430.0170.06019.30
5.4.420.0070.08319.47
5.4.410.0070.04019.31
5.4.400.0070.03319.25
5.4.390.0030.04019.12
5.4.380.0070.03719.15
5.4.370.0070.03319.14
5.4.360.0070.07319.25
5.4.350.0030.04319.12
5.4.340.0030.04019.12
5.4.320.0030.04019.15
5.4.310.0030.03719.00
5.4.300.0000.04019.15
5.4.290.0030.03718.87
5.4.280.0030.03719.20
5.4.270.0070.03318.84
5.4.260.0030.04018.92
5.4.250.0100.03019.11
5.4.240.0070.03319.19
5.4.230.0070.03719.15
5.4.220.0030.04018.84
5.4.210.0030.03718.86
5.4.200.0070.03319.24
5.4.190.0030.04319.23
5.4.180.0030.03719.14
5.4.170.0000.04018.86
5.4.160.0030.03719.22
5.4.150.0000.04319.06
5.4.140.0000.03716.41
5.4.130.0030.03316.46
5.4.120.0030.03316.44
5.4.110.0000.04716.52
5.4.100.0100.06016.45
5.4.90.0100.03016.46
5.4.80.0030.07016.34
5.4.70.0170.06316.33
5.4.60.0030.05716.37
5.4.50.0130.06016.31
5.4.40.0070.07716.27
5.4.30.0070.06016.34
5.4.20.0100.05016.38
5.4.10.0270.04716.40
5.4.00.0130.06315.81
5.3.290.0100.03014.71
5.3.280.0030.03714.63
5.3.270.0030.03714.64
5.3.260.0070.03714.60
5.3.250.0070.03014.76
5.3.240.0030.03714.68
5.3.230.0000.04014.60
5.3.220.0000.04014.71
5.3.210.0100.05714.58
5.3.200.0000.04014.45
5.3.190.0130.07014.64
5.3.180.0130.03014.61
5.3.170.0030.04014.58
5.3.160.0100.06014.59
5.3.150.0030.07014.56
5.3.140.0070.07014.45
5.3.130.0000.07314.61
5.3.120.0030.04714.54
5.3.110.0000.04714.58
5.3.100.0030.05014.11
5.3.90.0030.07013.94
5.3.80.0070.06014.03
5.3.70.0030.05314.07
5.3.60.0070.06714.06
5.3.50.0130.06714.12
5.3.40.0030.04713.92
5.3.30.0100.04313.92
5.3.20.0030.05013.77
5.3.10.0070.06313.71
5.3.00.0030.05313.70
5.2.170.0070.03311.20
5.2.160.0000.06311.30
5.2.150.0070.04711.21
5.2.140.0070.05011.16
5.2.130.0000.03711.15
5.2.120.0000.03711.01
5.2.110.0070.06311.12
5.2.100.0030.06011.07
5.2.90.0070.04711.08
5.2.80.0070.06011.16
5.2.70.0000.07011.16
5.2.60.0070.06011.13
5.2.50.0070.04711.08
5.2.40.0070.06311.02
5.2.30.0170.05310.99
5.2.20.0070.06010.96
5.2.10.0000.06710.93
5.2.00.0070.03310.75
5.1.60.0070.03310.15
5.1.50.0070.03010.01
5.1.40.0100.0509.95
5.1.30.0070.05310.34
5.1.20.0070.05310.36
5.1.10.0070.02710.05
5.1.00.0100.04010.04
5.0.50.0070.0438.57
5.0.40.0000.0278.40
5.0.30.0000.0438.21
5.0.20.0070.0178.19
5.0.10.0030.0208.23
5.0.00.0000.0608.07
4.4.90.0030.0237.76
4.4.80.0000.0377.76
4.4.70.0000.0237.76
4.4.60.0000.0407.76
4.4.50.0000.0277.76
4.4.40.0030.0337.76
4.4.30.0030.0237.76
4.4.20.0000.0437.76
4.4.10.0030.0337.76
4.4.00.0000.0477.76
4.3.110.0100.0277.76
4.3.100.0000.0177.76
4.3.90.0030.0337.76
4.3.80.0000.0507.76
4.3.70.0000.0177.76
4.3.60.0000.0237.76
4.3.50.0000.0337.76
4.3.40.0000.0437.76
4.3.30.0000.0407.76
4.3.20.0000.0407.76
4.3.10.0000.0277.76
4.3.00.0030.0237.76

preferences:
55.76 ms | 401 KiB | 5 Q