3v4l.org

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

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.00718.37
8.3.50.0150.00522.10
8.3.40.0090.00618.84
8.3.30.0030.01019.09
8.3.20.0050.00320.03
8.3.10.0040.00421.82
8.3.00.0000.00719.11
8.2.180.0070.00718.16
8.2.170.0120.00318.84
8.2.160.0040.01122.96
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0060.00319.77
8.2.110.0090.00321.11
8.2.100.0090.00317.91
8.2.90.0080.00018.06
8.2.80.0090.00017.97
8.2.70.0040.00417.38
8.2.60.0080.00018.04
8.2.50.0000.00818.07
8.2.40.0000.00819.88
8.2.30.0000.00818.02
8.2.20.0060.00317.52
8.2.10.0080.00017.91
8.2.00.0040.00417.64
8.1.280.0070.00725.92
8.1.270.0030.00618.88
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0120.00623.83
8.1.230.0040.00820.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.22
8.1.190.0050.00317.13
8.1.180.0030.00618.10
8.1.170.0000.00818.59
8.1.160.0040.00422.05
8.1.150.0040.00418.70
8.1.140.0040.00417.39
8.1.130.0050.00217.77
8.1.120.0000.00717.45
8.1.110.0040.00417.29
8.1.100.0000.00717.28
8.1.90.0000.00717.29
8.1.80.0050.00217.43
8.1.70.0000.00717.45
8.1.60.0080.00317.48
8.1.50.0080.00017.49
8.1.40.0030.00617.57
8.1.30.0030.00617.55
8.1.20.0050.00317.57
8.1.10.0050.00217.53
8.1.00.0000.00817.38
8.0.300.0020.00520.16
8.0.290.0000.00716.75
8.0.280.0080.00018.45
8.0.270.0000.00817.25
8.0.260.0030.00317.24
8.0.250.0030.00316.78
8.0.240.0070.00016.96
8.0.230.0030.00416.91
8.0.220.0060.00016.84
8.0.210.0000.00716.82
8.0.200.0030.00316.73
8.0.190.0040.00416.87
8.0.180.0000.00716.91
8.0.170.0030.00516.86
8.0.160.0080.00016.82
8.0.150.0030.00316.73
8.0.140.0030.00716.85
8.0.130.0000.00613.19
8.0.120.0040.00416.81
8.0.110.0000.00716.82
8.0.100.0030.00316.89
8.0.90.0030.00316.66
8.0.80.0120.00816.80
8.0.70.0000.00816.60
8.0.60.0000.00716.88
8.0.50.0000.00716.72
8.0.30.0140.01117.16
8.0.20.0050.01317.40
8.0.10.0000.00817.02
8.0.00.0050.01416.48
7.4.330.0050.00015.03
7.4.320.0000.00616.48
7.4.300.0030.00316.45
7.4.290.0000.00716.45
7.4.280.0000.00816.52
7.4.270.0030.00616.52
7.4.260.0000.00816.48
7.4.250.0030.00316.46
7.4.240.0030.00316.53
7.4.230.0070.00016.41
7.4.220.0090.00916.64
7.4.210.0000.01516.61
7.4.200.0020.00516.39
7.4.160.0100.00616.57
7.4.150.0070.01017.40
7.4.140.0050.01617.86
7.4.130.0110.00616.64
7.4.120.0090.00916.34
7.4.110.0060.01616.55
7.4.100.0180.00016.42
7.4.90.0100.00716.33
7.4.80.0060.01019.39
7.4.70.0030.01316.49
7.4.60.0070.01116.44
7.4.50.0030.00616.39
7.4.40.0110.00616.42
7.4.30.0040.01916.35
7.4.00.0080.00914.93
7.3.330.0000.00613.17
7.3.320.0000.00513.17
7.3.310.0030.00316.25
7.3.300.0030.00316.25
7.3.290.0080.00816.26
7.3.280.0050.01416.28
7.3.270.0070.01317.40
7.3.260.0060.01316.46
7.3.250.0130.00716.40
7.3.240.0100.00616.30
7.3.230.0110.00616.39
7.3.210.0100.00616.41
7.3.200.0110.00619.39
7.3.190.0110.00716.24
7.3.180.0090.00616.43
7.3.170.0060.01316.44
7.3.160.0030.01416.53
7.3.120.0070.01114.85
7.3.110.0070.01314.77
7.3.100.0080.00814.68
7.3.90.0070.00414.66
7.3.80.0110.00314.66
7.3.70.0100.00614.86
7.3.60.0070.00314.50
7.3.50.0030.01014.71
7.3.40.0040.00814.69
7.3.30.0070.01014.75
7.3.20.0100.00316.56
7.3.10.0070.00716.62
7.3.00.0060.00916.59
7.2.330.0060.01216.79
7.2.320.0060.01216.60
7.2.310.0140.00316.40
7.2.300.0140.00316.61
7.2.290.0060.01216.44
7.2.250.0080.01114.93
7.2.240.0130.00714.78
7.2.230.0040.01115.12
7.2.220.0080.00814.73
7.2.210.0030.01015.19
7.2.200.0040.01114.79
7.2.190.0000.00914.70
7.2.180.0080.01114.80
7.2.170.0060.01214.75
7.2.00.0100.00319.55
7.1.330.0080.00815.74
7.1.320.0030.01215.52
7.1.310.0060.00915.37
7.1.300.0030.00915.79
7.1.290.0000.01015.50
7.1.280.0060.00615.82
7.1.270.0070.00715.60
7.1.260.0030.00615.39
7.1.100.0060.00617.94
7.1.70.0090.00317.03
7.1.60.0110.01419.46
7.1.50.0030.01716.53
7.1.00.0000.08022.45
7.0.200.0000.00716.40
7.0.140.0000.05722.18
7.0.60.0130.06319.90
7.0.50.0070.04017.84
7.0.40.0100.03720.11
7.0.30.0330.06320.11
7.0.20.0330.06720.12
7.0.10.0130.06320.12
7.0.00.0000.05720.10
5.6.280.0000.07721.00
5.6.210.0070.05320.48
5.6.200.0130.07318.14
5.6.190.0070.04020.57
5.6.180.0230.04320.48
5.6.170.0300.07720.59
5.6.160.0200.06718.22
5.6.150.0100.05018.19
5.6.140.0070.05018.18
5.6.130.0100.08718.14
5.6.120.0130.06721.12
5.6.110.0100.05021.09
5.6.100.0070.08320.98
5.6.90.0130.08020.96
5.6.80.0000.08020.41
5.5.350.0000.07720.45
5.5.340.0130.07317.99
5.5.330.0030.08320.46
5.5.320.0000.04320.32
5.5.310.0200.03720.27
5.5.300.0070.05717.95
5.5.290.0070.05017.99
5.5.280.0100.08020.87
5.5.270.0070.06720.80
5.5.260.0070.07720.69
5.5.250.0170.07720.50
5.5.240.0330.05020.14
5.4.450.0630.06019.18
5.4.440.0500.05319.30
5.4.430.0000.06319.45
5.4.420.0170.05019.52
5.4.410.0100.05319.35
5.4.400.0100.05319.23
5.4.390.0100.06018.75
5.4.380.0130.05718.75
5.4.370.0170.05018.71
5.4.360.0200.04318.59
5.4.350.0170.05318.68
5.4.340.0100.06018.80
5.4.320.0130.05318.46
5.4.310.0230.04318.80
5.4.300.0200.04718.77
5.4.290.0270.04718.75
5.4.280.0170.05018.73
5.4.270.0230.06018.70
5.4.260.0100.05718.71
5.4.250.0230.04718.70
5.4.240.0200.05018.52
5.4.230.0270.04318.44
5.4.220.0170.06018.70
5.4.210.0130.05318.75
5.4.200.0170.05316.60
5.4.190.0070.06018.71
5.4.180.0230.04318.44
5.4.170.0230.04718.75
5.4.160.0130.05318.51
5.4.150.0170.05018.53
5.4.140.0230.04716.23
5.4.130.0170.04716.44
5.4.120.0170.05016.30
5.4.110.0130.05316.32
5.4.100.0130.05316.45
5.4.90.0130.05016.29
5.4.80.0200.04316.18
5.4.70.0230.04016.25
5.4.60.0270.03716.21
5.4.50.0200.04316.24
5.4.40.0170.05016.27
5.4.30.0200.04716.28
5.4.20.0170.06016.16
5.4.10.0170.05316.26
5.4.00.0100.05315.71
5.3.290.0170.05314.77
5.3.280.0130.05314.62
5.3.270.0130.05314.64
5.3.260.0100.05714.77
5.3.250.0030.06714.79
5.3.240.0200.04714.65
5.3.230.0200.04714.63
5.3.220.0200.04714.57
5.3.210.0070.06014.61
5.3.200.0100.06014.62
5.3.190.0030.06714.62
5.3.180.0130.05314.60
5.3.170.0170.04714.77
5.3.160.0200.04714.67
5.3.150.0100.05714.74
5.3.140.0230.04714.58
5.3.130.0100.06314.77
5.3.120.0170.07014.57
5.3.110.0270.06314.57
5.3.100.0130.07014.04
5.3.90.0170.05014.05
5.3.80.0130.06314.10
5.3.70.0100.05714.03
5.3.60.0100.06014.17
5.3.50.0130.05014.09
5.3.40.0130.05314.06
5.3.30.0170.04713.96
5.3.20.0230.03713.90
5.3.10.0200.05013.71
5.3.00.0070.05713.64
5.2.170.0200.03711.19
5.2.160.0200.03711.25
5.2.150.0170.04011.21
5.2.140.0030.05311.22
5.2.130.0170.03711.11
5.2.120.0100.04011.17
5.2.110.0100.04311.22
5.2.100.0030.04711.10
5.2.90.0130.04011.13
5.2.80.0100.04311.16
5.2.70.0070.05011.17
5.2.60.0030.04711.16
5.2.50.0130.04011.10
5.2.40.0070.04311.24
5.2.30.0200.03311.09
5.2.20.0170.04011.09
5.2.10.0100.04010.94
5.2.00.0200.03310.76
5.1.60.0100.03310.04
5.1.50.0000.04310.05
5.1.40.0100.03310.19
5.1.30.0130.03310.52
5.1.20.0200.02710.47
5.1.10.0130.04010.13
5.1.00.0130.03310.12
5.0.50.0070.0308.58
5.0.40.0030.0308.54
5.0.30.0170.0338.44
5.0.20.0100.0238.24
5.0.10.0070.0308.38
5.0.00.0070.0438.20
4.4.90.0070.0205.88
4.4.80.0070.0275.86
4.4.70.0070.0235.95
4.4.60.0070.0275.95
4.4.50.0070.0205.94
4.4.40.0100.0305.86
4.4.30.0030.0276.00
4.4.20.0000.0305.94
4.4.10.0000.0275.95
4.4.00.0070.0336.00
4.3.110.0070.0235.82
4.3.100.0070.0205.82
4.3.90.0030.0235.79
4.3.80.0000.0405.79
4.3.70.0030.0235.78
4.3.60.0100.0175.80
4.3.50.0000.0275.91
4.3.40.0030.0375.86
4.3.30.0000.0274.54
4.3.20.0000.0274.57
4.3.10.0070.0204.49
4.3.00.0130.01711.69

preferences:
56.87 ms | 401 KiB | 5 Q