3v4l.org

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

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.0150.00018.71
8.3.30.0070.00718.96
8.3.20.0040.00420.38
8.3.10.0050.00321.94
8.3.00.0040.00419.22
8.2.170.0130.00718.86
8.2.160.0130.00022.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00319.52
8.2.110.0070.00319.45
8.2.100.0120.00017.78
8.2.90.0000.00819.14
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0080.00019.94
8.2.30.0000.00717.93
8.2.20.0040.00417.61
8.2.10.0000.00917.87
8.2.00.0050.00317.55
8.1.270.0030.00518.91
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00321.12
8.1.230.0070.00417.42
8.1.220.0020.00517.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0030.00518.52
8.1.160.0030.00321.87
8.1.150.0070.00018.72
8.1.140.0000.00717.30
8.1.130.0070.00017.87
8.1.120.0000.00717.41
8.1.110.0040.00417.29
8.1.100.0040.00417.30
8.1.90.0050.00317.45
8.1.80.0080.00017.36
8.1.70.0040.00417.38
8.1.60.0040.00417.62
8.1.50.0040.00417.39
8.1.40.0040.00417.41
8.1.30.0040.00417.64
8.1.20.0050.00217.70
8.1.10.0050.00217.59
8.1.00.0050.00317.48
8.0.300.0070.00318.77
8.0.290.0070.00016.88
8.0.280.0030.00518.46
8.0.270.0030.00718.45
8.0.260.0030.00318.45
8.0.250.0030.00316.86
8.0.240.0040.00416.91
8.0.230.0040.00416.93
8.0.220.0030.00316.89
8.0.210.0030.00516.74
8.0.200.0060.00016.78
8.0.190.0040.00416.90
8.0.180.0000.00816.82
8.0.170.0000.00816.70
8.0.160.0030.00616.83
8.0.150.0000.00816.77
8.0.140.0100.00016.76
8.0.130.0030.00313.32
8.0.120.0040.00416.68
8.0.110.0000.00716.81
8.0.100.0000.00716.86
8.0.90.0070.00016.67
8.0.80.0080.00816.75
8.0.70.0080.00016.72
8.0.60.0040.00416.81
8.0.50.0000.00716.86
8.0.30.0140.01116.93
8.0.20.0110.01017.40
8.0.10.0000.00816.82
8.0.00.0110.00616.63
7.4.330.0020.00215.03
7.4.320.0030.00316.45
7.4.300.0000.00616.46
7.4.290.0000.00716.59
7.4.280.0000.00716.39
7.4.270.0090.00016.46
7.4.260.0030.00316.60
7.4.250.0040.00416.52
7.4.240.0030.00316.50
7.4.230.0000.00716.51
7.4.220.0140.00416.46
7.4.210.0030.01316.49
7.4.200.0000.00716.61
7.4.160.0030.01216.44
7.4.150.0110.00717.40
7.4.140.0100.01017.86
7.4.130.0120.00416.35
7.4.120.0100.00516.58
7.4.110.0060.01616.57
7.4.100.0030.01416.45
7.4.90.0070.01116.50
7.4.80.0060.01219.39
7.4.70.0120.00616.39
7.4.60.0170.00316.39
7.4.50.0060.00316.61
7.4.40.0030.02016.39
7.4.30.0130.00616.42
7.4.00.0080.00814.89
7.3.330.0050.00013.24
7.3.320.0060.00013.18
7.3.310.0070.00016.30
7.3.300.0070.00016.25
7.3.290.0020.01316.26
7.3.280.0070.01116.21
7.3.270.0070.01117.40
7.3.260.0070.01116.49
7.3.250.0130.00516.36
7.3.240.0070.01116.50
7.3.230.0150.00316.39
7.3.210.0110.00716.23
7.3.200.0070.00919.39
7.3.190.0130.00316.42
7.3.180.0090.00616.27
7.3.170.0100.01016.27
7.3.160.0090.00916.22
7.3.120.0070.01114.55
7.3.110.0030.01514.47
7.3.100.0040.01214.73
7.3.90.0150.00414.53
7.3.80.0090.00314.92
7.3.70.0080.00414.58
7.3.60.0000.00914.38
7.3.50.0070.00714.69
7.3.40.0060.00614.60
7.3.30.0000.01214.55
7.3.20.0080.01116.63
7.3.10.0120.00616.59
7.3.00.0060.00616.42
7.2.330.0060.01116.75
7.2.320.0090.01516.71
7.2.310.0130.00316.75
7.2.300.0070.01016.30
7.2.290.0070.01016.23
7.2.250.0150.00315.09
7.2.240.0140.00714.86
7.2.230.0070.00714.94
7.2.220.0040.01215.14
7.2.210.0100.00614.77
7.2.200.0090.00915.04
7.2.190.0080.00614.96
7.2.180.0030.01014.98
7.2.170.0040.01114.96
7.2.00.0070.00719.16
7.1.330.0080.00515.50
7.1.320.0100.00615.82
7.1.310.0000.01115.38
7.1.300.0060.00615.70
7.1.290.0030.01015.57
7.1.280.0150.00015.39
7.1.270.0000.01615.30
7.1.260.0000.01315.59
7.1.100.0040.00718.14
7.1.70.0060.00917.15
7.1.60.0070.01719.46
7.1.50.0060.01616.86
7.1.00.0070.07322.51
7.0.200.0070.00316.84
7.0.140.0000.05722.05
7.0.60.0030.04320.06
7.0.50.0200.07017.87
7.0.40.0070.05320.11
7.0.30.0330.06320.24
7.0.20.0270.05320.24
7.0.10.0070.05020.11
7.0.00.0030.06020.08
5.6.280.0030.07321.08
5.6.210.0070.08720.56
5.6.200.0070.04718.24
5.6.190.0070.04720.64
5.6.180.0230.04320.47
5.6.170.0270.06320.53
5.6.160.0070.05020.43
5.6.150.0070.08318.16
5.6.140.0070.08018.17
5.6.130.0070.04018.18
5.6.120.0070.05720.99
5.6.110.0230.07321.05
5.6.100.0030.04721.00
5.6.90.0130.06721.08
5.6.80.0130.04020.53
5.5.350.0030.07320.47
5.5.340.0030.05718.02
5.5.330.0100.03720.28
5.5.320.0030.03720.35
5.5.310.0200.05320.34
5.5.300.0070.08018.03
5.5.290.0130.05018.01
5.5.280.0030.04720.69
5.5.270.0130.08320.89
5.5.260.0030.04020.77
5.5.250.0000.04720.70
5.5.240.3900.03720.16
5.4.450.1430.05019.57
5.4.440.1570.04319.47
5.4.430.1630.03319.43
5.4.420.0000.06019.54
5.4.410.0000.04019.28
5.4.400.0700.03719.08
5.4.390.1530.03719.32
5.4.380.1670.03019.31
5.4.370.1830.04318.87
5.4.360.1670.03319.21
5.4.350.1600.03719.32
5.4.340.1970.04319.24
5.4.320.1800.05018.98
5.4.310.1600.03719.22
5.4.300.1600.03718.99
5.4.290.1770.03318.87
5.4.280.1970.05019.31
5.4.270.0000.04019.09
5.4.260.0070.04318.97
5.4.250.0700.04019.30
5.4.240.1730.04019.06
5.4.230.1930.03719.18
5.4.220.1830.04319.22
5.4.210.1700.06019.23
5.4.200.1830.04018.99
5.4.190.1800.04318.99
5.4.180.1530.04319.12
5.4.170.1800.04319.08
5.4.160.1730.05019.04
5.4.150.1570.04019.29
5.4.140.1370.03016.55
5.4.130.0070.07316.55
5.4.120.0030.04016.43
5.4.110.0670.04016.63
5.4.100.1670.04316.61
5.4.90.1770.03316.50
5.4.80.1670.04016.48
5.4.70.1730.04316.57
5.4.60.1800.03716.38
5.4.50.1770.03316.44
5.4.40.1530.03016.43
5.4.30.1770.03716.53
5.4.20.1670.04716.43
5.4.10.1670.05016.53
5.4.00.1500.04715.82
5.3.290.0000.04014.74
5.3.280.0030.06714.57
5.3.270.1000.03314.60
5.3.260.1630.05314.52
5.3.250.1670.04714.53
5.3.240.1400.03714.51
5.3.230.1400.03714.52
5.3.220.1630.04714.54
5.3.210.1830.04014.57
5.3.200.1770.04014.56
5.3.190.1700.04714.55
5.3.180.1730.04314.71
5.3.170.1770.03014.46
5.3.160.1630.04314.71
5.3.150.0230.04014.71
5.3.140.0070.07714.67
5.3.130.0030.03714.54
5.3.120.1730.04714.46
5.3.110.1800.04314.70
5.3.100.1630.04313.96
5.3.90.1730.04714.03
5.3.80.1500.03714.18
5.3.70.1770.03713.93
5.3.60.1730.04313.98
5.3.50.2070.04313.87
5.3.40.1730.03013.87
5.3.30.2000.04313.84
5.3.20.1500.03713.61
5.3.10.0030.03313.81
5.3.00.0000.03713.72
5.2.170.0000.04011.24
5.2.160.0700.02711.16
5.2.150.1330.03011.16
5.2.140.1170.03011.06
5.2.130.1370.02711.23
5.2.120.1430.03011.23
5.2.110.1330.02711.04
5.2.100.1430.02011.19
5.2.90.1300.03311.02
5.2.80.1330.03011.05
5.2.70.1430.03011.07
5.2.60.1330.02711.04
5.2.50.1630.03311.11
5.2.40.0000.03011.05
5.2.30.0070.03011.05
5.2.20.0030.03010.88
5.2.10.0170.01310.87
5.2.00.0800.03710.72
5.1.60.0370.0279.91
5.1.50.0000.0309.99
5.1.40.0070.02010.21
5.1.30.0030.02710.49
5.1.20.0500.02710.29
5.1.10.1100.03010.06
5.1.00.1030.02710.23
5.0.50.0600.0309.41
5.0.40.0500.0179.41
5.0.30.0630.0439.41
5.0.20.0570.0279.41
5.0.10.0500.0209.41
5.0.00.0470.0309.41
4.4.90.0470.0179.41
4.4.80.0230.0179.41
4.4.70.0470.0179.41
4.4.60.0500.0139.41
4.4.50.0600.0309.41
4.4.40.0570.0309.41
4.4.30.0630.0209.41
4.4.20.0430.0209.41
4.4.10.0470.0179.41
4.4.00.0570.0239.41
4.3.110.0670.0279.41
4.3.100.0500.0139.41
4.3.90.0630.0279.41
4.3.80.0530.0279.41
4.3.70.0630.0279.41
4.3.60.0630.0139.41
4.3.50.0030.0139.41
4.3.40.0070.0479.41
4.3.30.0000.0379.41
4.3.20.0000.0239.41
4.3.10.0000.0179.41
4.3.00.0000.0179.41

preferences:
48.91 ms | 400 KiB | 5 Q