3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UserNew { public function bob () { echo 'ja sam new user iz parenta UserNew class'; } } class MeAgen extends UserNew { public function newMeAgen () { parent::bob(); } } class User { public function bob () { echo 'ja sam new user iz parenta UserNew class'; } } class Me extends User { public function meAgen () { parent::bob(); } } $user1 = new MeAgen(); $user1->newMeAgen(); $user2 = new Me(); $user2->meAgen();

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.0120.00918.28
8.3.50.0090.00917.84
8.3.40.0040.01118.54
8.3.30.0180.00418.88
8.3.20.0110.00720.20
8.3.10.0040.00421.90
8.3.00.0070.00019.15
8.2.180.0120.00918.29
8.2.170.0120.00318.78
8.2.160.0110.00322.96
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00317.93
8.2.110.0030.00719.00
8.2.100.0040.00817.91
8.2.90.0000.00819.09
8.2.80.0050.00317.97
8.2.70.0090.00017.50
8.2.60.0090.00017.93
8.2.50.0030.00518.07
8.2.40.0050.00320.07
8.2.30.0030.00518.00
8.2.20.0000.00817.49
8.2.10.0000.00818.00
8.2.00.0000.00817.30
8.1.270.0030.00618.95
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00420.87
8.1.230.0110.00017.45
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0030.00518.39
8.1.160.0020.00521.91
8.1.150.0000.00718.79
8.1.140.0040.00417.42
8.1.130.0000.00717.73
8.1.120.0030.00317.45
8.1.110.0040.00417.46
8.1.100.0030.00417.29
8.1.90.0040.00417.38
8.1.80.0050.00217.40
8.1.70.0000.00717.40
8.1.60.0080.00017.51
8.1.50.0000.00817.52
8.1.40.0000.00717.39
8.1.30.0090.00017.58
8.1.20.0050.00217.55
8.1.10.0040.00417.42
8.1.00.0030.00517.39
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.36
8.0.270.0000.00717.13
8.0.260.0030.00317.32
8.0.250.0060.00016.96
8.0.240.0070.00016.76
8.0.230.0040.00416.89
8.0.220.0070.00016.77
8.0.210.0000.00716.84
8.0.200.0060.00016.88
8.0.190.0040.00416.91
8.0.180.0020.00516.86
8.0.170.0000.00816.85
8.0.160.0000.00816.88
8.0.150.0070.00016.77
8.0.140.0030.00616.73
8.0.130.0060.00013.25
8.0.120.0040.00416.79
8.0.110.0030.00516.79
8.0.100.0000.00716.84
8.0.90.0000.00816.87
8.0.80.0000.01516.87
8.0.70.0030.00516.71
8.0.60.0080.00016.89
8.0.50.0000.00716.67
8.0.30.0070.01417.26
8.0.20.0170.00117.40
8.0.10.0060.00316.84
8.0.00.0100.00916.74
7.4.330.0000.00615.03
7.4.320.0000.00616.36
7.4.300.0000.00616.65
7.4.290.0030.00316.56
7.4.280.0050.00316.59
7.4.270.0000.00716.59
7.4.260.0000.00716.43
7.4.250.0000.00716.36
7.4.240.0000.00716.61
7.4.230.0000.00716.70
7.4.220.0120.01016.37
7.4.210.0110.00416.54
7.4.200.0000.00716.63
7.4.160.0090.00616.42
7.4.150.0110.01217.40
7.4.140.0090.00917.86
7.4.130.0100.00716.46
7.4.120.0080.01016.33
7.4.110.0170.00716.39
7.4.100.0070.01516.48
7.4.90.0190.00016.47
7.4.80.0060.01019.39
7.4.70.0110.00516.59
7.4.60.0030.01316.64
7.4.50.0000.00816.60
7.4.40.0070.01416.63
7.4.30.0040.01516.63
7.4.00.0040.00714.59
7.3.330.0030.00313.29
7.3.320.0030.00213.24
7.3.310.0000.00616.14
7.3.300.0000.00716.18
7.3.290.0080.00616.21
7.3.280.0060.01216.24
7.3.270.0060.01517.40
7.3.260.0060.01216.31
7.3.250.0100.00816.52
7.3.240.0130.00316.32
7.3.230.0090.01616.40
7.3.210.0100.00716.22
7.3.200.0120.00919.39
7.3.190.0040.01216.44
7.3.180.0030.01316.53
7.3.170.0090.00916.32
7.3.160.0080.00816.30
7.3.10.0000.01016.77
7.3.00.0070.00716.47
7.2.330.0120.00616.30
7.2.320.0040.02116.44
7.2.310.0110.00616.70
7.2.300.0060.00916.38
7.2.290.0140.00916.60
7.2.130.0040.00816.82
7.2.120.0000.01116.56
7.2.110.0070.00416.96
7.2.100.0080.00416.79
7.2.90.0060.00916.96
7.2.80.0090.00016.74
7.2.70.0060.00916.86
7.2.60.0030.00617.02
7.2.50.0070.00716.85
7.2.40.0130.00016.84
7.2.30.0060.00616.92
7.2.20.0030.00617.05
7.2.10.0030.00916.81
7.2.00.0080.00518.07
7.1.250.0090.00615.55
7.1.100.0000.01418.11
7.1.70.0000.00817.07
7.1.60.0070.00717.09
7.1.50.0070.01616.77
7.1.00.0000.08022.46
7.0.200.0030.01016.46
7.0.140.0000.05322.09
7.0.60.0200.06319.88
7.0.50.0130.07017.75
7.0.40.0030.05020.10
7.0.30.0230.04020.17
7.0.20.0300.04720.07
7.0.10.0070.06020.11
7.0.00.0130.04320.15
5.6.280.0070.07021.11
5.6.210.0100.05020.65
5.6.200.0000.07718.27
5.6.190.0130.05320.41
5.6.180.0330.04320.48
5.6.170.0270.04020.58
5.6.160.0100.08320.54
5.6.150.0030.05318.14
5.6.140.0070.03718.15
5.6.130.0030.05318.27
5.6.120.0070.04321.13
5.6.110.0130.07021.12
5.6.100.0070.06321.09
5.6.90.0130.08720.97
5.6.80.0130.03020.39
5.5.350.0330.07020.44
5.5.340.0130.04018.07
5.5.330.0130.06320.57
5.5.320.0300.04020.51
5.5.310.0400.06020.27
5.5.300.0030.06017.95
5.5.290.0070.07318.01
5.5.280.0070.08320.78
5.5.270.0100.08320.90
5.5.260.0070.07720.68
5.5.250.0130.03020.59
5.5.240.0070.07720.29
5.4.450.0070.05719.59
5.4.440.0500.06319.60
5.4.430.0030.06019.63
5.4.420.0230.05319.46
5.4.410.0170.05319.41
5.4.400.0000.06018.91
5.4.390.0170.06318.61
5.4.380.0200.05718.47
5.4.370.0230.04718.60
5.4.360.0230.04718.80
5.4.350.0130.05718.76
5.4.340.0170.07318.72
5.4.320.0100.06018.55
5.4.310.0130.05718.71
5.4.300.0100.06018.61
5.4.290.0130.05718.71
5.4.280.0170.05718.69
5.4.270.0200.05018.75
5.4.260.0230.06718.52
5.4.250.0230.04718.70
5.4.240.0300.06018.60
5.4.230.0200.04718.66
5.4.220.0130.06318.43
5.4.210.0170.05018.79
5.4.200.0130.05716.57
5.4.190.0230.06718.44
5.4.180.0230.06718.76
5.4.170.0130.05318.69
5.4.160.0200.05318.53
5.4.150.0100.05718.65
5.4.140.0170.05016.25
5.4.130.0200.05016.17
5.4.120.0070.06016.34
5.4.110.0200.04716.35
5.4.100.0130.05716.29
5.4.90.0170.05316.39
5.4.80.0100.05716.33
5.4.70.0230.04316.15
5.4.60.0230.05016.19
5.4.50.0270.05716.20
5.4.40.0200.05016.28
5.4.30.0330.06316.23
5.4.20.0100.05716.26
5.4.10.0200.05716.40
5.4.00.0270.04315.90
5.3.290.0170.05314.88
5.3.280.0070.06014.80
5.3.270.0230.05014.65
5.3.260.0200.05314.65
5.3.250.0230.04314.64
5.3.240.0170.05014.77
5.3.230.0070.06314.73
5.3.220.0100.05714.79
5.3.210.0170.05014.61
5.3.200.0200.05014.78
5.3.190.0170.05314.58
5.3.180.0230.04014.75
5.3.170.0200.04714.56
5.3.160.0200.04714.55
5.3.150.0100.05714.79
5.3.140.0200.05314.59
5.3.130.0200.05014.53
5.3.120.0100.06014.57
5.3.110.0100.06014.60
5.3.100.0170.05314.06
5.3.90.0300.03714.06
5.3.80.0230.04314.05
5.3.70.0130.05314.08
5.3.60.0170.05014.23
5.3.50.0270.05014.03
5.3.40.0170.04713.96
5.3.30.0130.05314.03
5.3.20.0270.04013.92
5.3.10.0200.04713.77
5.3.00.0130.05013.71
5.2.170.0100.04311.21
5.2.160.0100.05011.37
5.2.150.0170.04011.36
5.2.140.0070.04711.13
5.2.130.0070.04711.24
5.2.120.0100.04311.33
5.2.110.0130.04711.15
5.2.100.0070.04311.16
5.2.90.0130.03711.20
5.2.80.0130.04011.20
5.2.70.0070.04711.30
5.2.60.0100.04011.04
5.2.50.0170.03711.07
5.2.40.0070.04311.22
5.2.30.0000.05711.03
5.2.20.0100.04010.98
5.2.10.0100.04310.99
5.2.00.0200.03710.84
5.1.60.0070.04010.04
5.1.50.0030.04010.05
5.1.40.0070.03710.17
5.1.30.0200.02710.37
5.1.20.0130.03710.34
5.1.10.0070.03710.27
5.1.00.0070.04310.16
5.0.50.0100.0278.64
5.0.40.0030.0378.63
5.0.30.0130.0378.27
5.0.20.0070.0278.23
5.0.10.0100.0278.26
5.0.00.0100.0408.21
4.4.90.0070.0205.89
4.4.80.0000.0275.95
4.4.70.0070.0205.92
4.4.60.0030.0235.87
4.4.50.0030.0235.91
4.4.40.0100.0335.93
4.4.30.0200.0175.87
4.4.20.0070.0275.95
4.4.10.0100.0175.95
4.4.00.0030.0375.93
4.3.110.0070.0205.84
4.3.100.0130.0135.91
4.3.90.0100.0175.86
4.3.80.0030.0375.80
4.3.70.0030.0235.81
4.3.60.0070.0205.80
4.3.50.0000.0335.79
4.3.40.0100.0305.76
4.3.30.0000.0274.57
4.3.20.0000.0274.57
4.3.10.0000.0274.49
4.3.00.0030.0206.95

preferences:
62.64 ms | 400 KiB | 5 Q