3v4l.org

run code in 300+ PHP versions simultaneously
<?php class derp_User { /** * DEPRECATED */ static function getByUserID($id) { return self::getByID($id); } static function getByID($id) { $u = new User; $u->uid = $id; return $u; } } class User extends derp_User {} class myOwnUser extends User { static function getByID($id) { $u = new myOwnUser; $u->uid = $id; return $u; } } $u = myOwnUser::getByUserID(1337); print_r($u); echo "\nSHOULD BE"; print_r(myOWnUser::getByID(1337));

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.0070.00716.85
8.3.50.0180.00222.00
8.3.40.0040.01418.79
8.3.30.0110.00318.95
8.3.20.0070.00020.21
8.3.10.0040.00423.71
8.3.00.0080.00020.64
8.2.180.0070.01016.38
8.2.170.0000.01422.96
8.2.160.0070.00722.18
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.21
8.2.110.0030.00622.07
8.2.100.0120.00017.78
8.2.90.0000.00719.13
8.2.80.0000.00918.02
8.2.70.0030.00617.63
8.2.60.0030.00617.80
8.2.50.0030.00618.07
8.2.40.0080.00017.97
8.2.30.0110.00017.99
8.2.20.0070.00017.67
8.2.10.0030.00619.31
8.2.00.0000.00817.44
8.1.280.0110.00725.92
8.1.270.0000.00823.84
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00423.93
8.1.230.0040.00819.16
8.1.220.0000.00717.74
8.1.210.0090.00018.77
8.1.200.0100.00017.23
8.1.190.0080.00017.29
8.1.180.0060.00318.10
8.1.170.0050.00318.56
8.1.160.0000.01021.97
8.1.150.0040.00418.59
8.1.140.0000.00717.31
8.1.130.0030.00317.90
8.1.120.0080.00017.30
8.1.110.0080.00017.33
8.1.100.0040.00417.28
8.1.90.0040.00417.36
8.1.80.0030.00317.42
8.1.70.0040.00417.22
8.1.60.0050.00317.46
8.1.50.0030.00517.55
8.1.40.0040.00417.42
8.1.30.0040.00417.69
8.1.20.0040.00417.66
8.1.10.0000.00717.56
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0000.00817.18
8.0.280.0070.00018.32
8.0.270.0000.00717.26
8.0.260.0030.00316.73
8.0.250.0030.00316.80
8.0.240.0050.00516.92
8.0.230.0030.00316.90
8.0.220.0070.00016.86
8.0.210.0040.00416.84
8.0.200.0030.00316.91
8.0.190.0030.00316.81
8.0.180.0000.00716.92
8.0.170.0050.00316.89
8.0.160.0040.00416.90
8.0.150.0070.00016.79
8.0.140.0060.00316.68
8.0.130.0030.00313.24
8.0.120.0000.00816.85
8.0.110.0080.00016.79
8.0.100.0040.00416.87
8.0.90.0040.00416.79
8.0.80.0070.01016.82
8.0.70.0050.00316.90
8.0.60.0000.00816.73
8.0.50.0070.00016.89
8.0.30.0110.01116.96
8.0.20.0110.01517.40
8.0.10.0000.00717.06
8.0.00.0070.01016.88
7.4.330.0050.00015.06
7.4.320.0000.00616.50
7.4.300.0030.00316.51
7.4.290.0080.00016.41
7.4.280.0080.00016.61
7.4.270.0030.00316.48
7.4.260.0070.00016.57
7.4.250.0000.00816.56
7.4.240.0040.00416.55
7.4.230.0000.00816.50
7.4.220.0090.01316.61
7.4.210.0090.00616.57
7.4.200.0070.00016.50
7.4.190.0070.00016.74
7.4.160.0030.01416.55
7.4.150.0120.01217.40
7.4.140.0070.01117.86
7.4.130.0100.00816.53
7.4.120.0100.00716.45
7.4.110.0070.01016.33
7.4.100.0090.00916.55
7.4.90.0070.01116.58
7.4.80.0000.01716.39
7.4.70.0150.00416.55
7.4.60.0100.01016.45
7.4.50.0000.00816.28
7.4.40.0030.01222.77
7.4.30.0110.00616.44
7.4.00.0000.01615.13
7.3.330.0050.00013.03
7.3.320.0000.00513.18
7.3.310.0000.00716.29
7.3.300.0000.00716.19
7.3.290.0070.00716.25
7.3.280.0090.01016.19
7.3.270.0130.00417.40
7.3.260.0060.01316.38
7.3.250.0100.01016.31
7.3.240.0060.01016.26
7.3.230.0100.00716.39
7.3.210.0070.01016.33
7.3.200.0120.00619.39
7.3.190.0130.01416.35
7.3.180.0040.01216.23
7.3.170.0120.00316.27
7.3.160.0090.00616.50
7.3.120.0000.01514.79
7.2.330.0040.01716.67
7.2.320.0100.01016.66
7.2.310.0030.01316.79
7.2.300.0130.00316.76
7.2.290.0110.00716.43
7.2.00.0030.00919.46
7.1.200.0060.00915.94
7.1.100.0100.00718.06
7.1.70.0040.00416.95
7.1.60.0000.01919.29
7.1.50.0060.01316.88
7.1.00.0070.07022.39
7.0.200.0230.01014.63
7.0.140.0030.07321.93
7.0.100.0070.08319.93
7.0.90.0170.07319.89
7.0.80.0070.04319.87
7.0.70.0070.07719.94
7.0.60.0100.06020.03
7.0.50.0570.07720.35
7.0.40.0100.06020.00
7.0.30.0100.07020.05
7.0.20.0070.08020.08
7.0.10.0100.08020.03
7.0.00.0070.04320.12
5.6.280.0070.07020.87
5.6.250.0030.09020.64
5.6.240.0030.04320.68
5.6.230.0130.07020.60
5.6.220.0030.08720.56
5.6.210.0100.05720.76
5.6.200.0170.07021.08
5.6.190.0000.05721.14
5.6.180.0100.06721.01
5.6.170.0170.04720.97
5.6.160.0130.07321.11
5.6.150.0100.07721.09
5.6.140.0130.07721.02
5.6.130.0100.08021.14
5.6.120.0070.08021.02
5.6.110.0170.07020.95
5.6.100.0000.08321.18
5.6.90.0070.07721.06
5.6.80.0130.07320.43
5.6.70.0070.06720.43
5.6.60.0100.08020.46
5.6.50.0100.05020.41
5.6.40.0170.06720.45
5.6.30.0070.06720.45
5.6.20.0070.08020.30
5.6.10.0070.07720.37
5.6.00.0130.07020.37
5.5.380.0030.08720.41
5.5.370.0130.06720.44
5.5.360.0030.05020.36
5.5.350.0100.06720.47
5.5.340.0070.08320.89
5.5.330.0100.07020.86
5.5.320.0130.07020.77
5.5.310.0030.09020.88
5.5.300.0170.07020.92
5.5.290.0100.08020.83
5.5.280.0130.07720.93
5.5.270.0030.08020.77
5.5.260.0000.08320.77
5.5.250.0130.07020.71
5.5.240.0100.07720.27
5.5.230.0170.07020.26
5.5.220.0070.06020.30
5.5.210.0070.07720.12
5.5.200.0130.07720.16
5.5.190.0130.07320.24
5.5.180.0170.07720.24
5.5.160.0100.07720.28
5.5.150.0170.07020.24
5.5.140.0000.05320.23
5.5.130.0100.05020.24
5.5.120.0100.07720.25
5.5.110.0100.07320.15
5.5.100.0130.05320.12
5.5.90.0070.07720.02
5.5.80.0100.06720.11
5.5.70.0070.07320.07
5.5.60.0200.06020.16
5.5.50.0100.07320.15
5.5.40.0100.05720.07
5.5.30.0070.07719.94
5.5.20.0070.07720.03
5.5.10.0130.04720.05
5.5.00.0030.05019.98
5.4.450.0070.08319.45
5.4.440.0130.07019.46
5.4.430.0000.08319.23
5.4.420.0070.07319.56
5.4.410.0030.07019.09
5.4.400.0100.07019.04
5.4.390.0100.07018.91
5.4.380.0000.08019.14
5.4.370.0070.05719.09
5.4.360.0070.08019.21
5.4.350.0070.07319.14
5.4.340.0030.07719.05
5.4.320.0130.07018.88
5.4.310.0030.04718.95
5.4.300.0000.07718.88
5.4.290.0130.06719.12
5.4.280.0100.04318.95
5.4.270.0030.08319.04
5.4.260.0130.04719.13
5.4.250.0030.08018.90
5.4.240.0030.07319.02
5.4.230.0070.07319.04
5.4.220.0030.07719.23
5.4.210.0130.06719.03
5.4.200.0070.07018.89
5.4.190.0130.07019.02
5.4.180.0030.06319.20
5.4.170.0100.07719.03
5.4.160.0000.08019.02
5.4.150.0070.07319.14
5.4.140.0030.04316.45
5.4.130.0070.07016.41
5.4.120.0070.06016.30
5.4.110.0170.06016.54
5.4.100.0070.07316.49
5.4.90.0030.07016.40
5.4.80.0100.05316.36
5.4.70.0070.06716.47
5.4.60.0170.06316.37
5.4.50.0100.07016.45
5.4.40.0130.07016.42
5.4.30.0070.05316.31
5.4.20.0100.06016.36
5.4.10.0030.08316.34
5.4.00.0070.07015.92
5.3.290.0000.08314.73
5.3.280.0130.07314.58
5.3.270.0030.08014.64
5.3.260.0000.08714.70
5.3.250.0100.07014.73
5.3.240.0130.07014.63
5.3.230.0030.08314.66
5.3.220.0030.07014.53
5.3.210.0030.06014.61
5.3.200.0070.04014.66
5.3.190.0070.07714.61
5.3.180.0070.07314.67
5.3.170.0070.07714.52
5.3.160.0070.07014.59
5.3.150.0030.08014.55
5.3.140.0130.07014.62
5.3.130.0030.07714.61
5.3.120.0100.07314.57
5.3.110.0070.07714.55
5.3.100.0030.07714.18
5.3.90.0070.06013.98
5.3.80.0100.07014.08
5.3.70.0000.08014.02
5.3.60.0100.07014.06
5.3.50.0070.07713.85
5.3.40.0070.04013.89
5.3.30.0100.06714.01
5.3.20.0100.07013.72
5.3.10.0130.06713.68
5.3.00.0100.07013.65
5.2.170.0000.06711.07
5.2.160.0100.05711.28
5.2.150.0030.06711.28
5.2.140.0030.06311.23
5.2.130.0070.06011.12
5.2.120.0030.05711.04
5.2.110.0000.07011.17
5.2.100.0000.06311.16
5.2.90.0030.05311.06
5.2.80.0070.05710.97
5.2.70.0070.05711.02
5.2.60.0100.05310.99
5.2.50.0030.04310.91
5.2.40.0030.06010.95
5.2.30.0130.05311.10
5.2.20.0000.06711.03
5.2.10.0030.06311.01
5.2.00.0030.06010.67
5.1.60.0030.05310.01
5.1.50.0070.05310.09
5.1.40.0030.05710.00
5.1.30.0070.05710.41
5.1.20.0000.06310.25
5.1.10.0030.05010.16
5.1.00.0000.03710.07
5.0.50.0030.0439.47
5.0.40.0030.0439.47
5.0.30.0000.0679.47
5.0.20.0000.0479.47
5.0.10.0030.0409.47
5.0.00.0030.0679.47
4.4.90.0070.0279.47
4.4.80.0070.0309.47
4.4.70.0030.0339.47
4.4.60.0030.0379.47
4.4.50.0000.0379.47
4.4.40.0030.0509.47
4.4.30.0030.0279.47
4.4.20.0000.0309.47
4.4.10.0070.0309.47
4.4.00.0000.0409.47
4.3.110.0030.0339.47
4.3.100.0030.0339.47
4.3.90.0000.0379.47
4.3.80.0030.0509.47
4.3.70.0030.0209.47
4.3.60.0000.0339.47
4.3.50.0030.0309.47
4.3.40.0000.0539.47
4.3.30.0030.0379.47
4.3.20.0000.0339.47
4.3.10.0030.0309.47
4.3.00.0070.0309.47

preferences:
35.09 ms | 401 KiB | 5 Q