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\n\n"; 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.0090.00618.56
8.3.50.0150.00121.09
8.3.40.0060.01518.79
8.3.30.0060.01018.75
8.3.20.0080.00018.48
8.3.10.0040.00420.92
8.3.00.0050.00323.53
8.2.180.0090.01218.66
8.2.170.0110.00422.96
8.2.160.0130.00020.34
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0060.00321.00
8.2.110.0070.00319.30
8.2.100.0040.00717.97
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0040.00417.34
8.2.60.0030.00617.80
8.2.50.0030.00518.07
8.2.40.0070.00018.22
8.2.30.0040.00417.89
8.2.20.0090.00017.48
8.2.10.0080.00017.66
8.2.00.0040.00619.40
8.1.280.0150.00625.92
8.1.270.0060.00323.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00620.86
8.1.230.0090.00318.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0040.00418.69
8.1.160.0050.00218.70
8.1.150.0000.00718.64
8.1.140.0040.00417.45
8.1.130.0000.00817.78
8.1.120.0060.00317.25
8.1.110.0040.00417.41
8.1.100.0040.00417.30
8.1.90.0000.00817.42
8.1.80.0040.00417.45
8.1.70.0000.00717.37
8.1.60.0040.00417.57
8.1.50.0040.00417.43
8.1.40.0040.00417.46
8.1.30.0030.00517.58
8.1.20.0030.00517.55
8.1.10.0030.00517.56
8.1.00.0000.00817.44
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.41
8.0.270.0000.00717.25
8.0.260.0030.00516.78
8.0.250.0040.00416.82
8.0.240.0060.00316.93
8.0.230.0000.00716.80
8.0.220.0040.00416.83
8.0.210.0000.00816.82
8.0.200.0060.00016.84
8.0.190.0070.00016.77
8.0.180.0000.00716.73
8.0.170.0040.00416.85
8.0.160.0000.00816.93
8.0.150.0000.00716.77
8.0.140.0000.00716.78
8.0.130.0030.00313.19
8.0.120.0040.00416.80
8.0.110.0080.00016.68
8.0.100.0050.00216.65
8.0.90.0000.00816.81
8.0.80.0070.01416.78
8.0.70.0030.00516.85
8.0.60.0080.00016.64
8.0.50.0070.00016.94
8.0.30.0130.00517.03
8.0.20.0100.00917.40
8.0.10.0050.00216.95
8.0.00.0080.01016.68
7.4.330.0060.00014.78
7.4.320.0070.00016.55
7.4.300.0000.00716.61
7.4.290.0000.00816.50
7.4.280.0070.00016.50
7.4.270.0000.00816.57
7.4.260.0030.00313.27
7.4.250.0050.00316.57
7.4.240.0040.00416.62
7.4.230.0000.00816.67
7.4.220.0070.00716.51
7.4.210.0040.01016.58
7.4.200.0030.00316.48
7.4.190.0040.00416.67
7.4.160.0120.00416.42
7.4.150.0100.00717.40
7.4.140.0090.00917.86
7.4.130.0100.00716.70
7.4.120.0120.00716.67
7.4.110.0130.00316.59
7.4.100.0170.00316.39
7.4.90.0140.00316.50
7.4.80.0060.01519.39
7.4.70.0090.00916.52
7.4.60.0070.00716.36
7.4.50.0000.00716.61
7.4.40.0030.01222.52
7.4.30.0130.00316.55
7.4.00.0030.01414.97
7.3.330.0020.00213.11
7.3.320.0020.00213.18
7.3.310.0030.00316.14
7.3.300.0070.00016.25
7.3.290.0030.01016.24
7.3.280.0050.01116.20
7.3.270.0100.01017.40
7.3.260.0150.00818.24
7.3.250.0100.00916.48
7.3.240.0070.01016.29
7.3.230.0030.01416.57
7.3.210.0130.00316.29
7.3.200.0130.01016.34
7.3.190.0120.00616.38
7.3.180.0060.00916.14
7.3.170.0110.00816.32
7.3.160.0060.01016.15
7.3.120.0080.00914.69
7.3.110.0030.01015.01
7.3.100.0040.00714.77
7.3.90.0040.00714.81
7.3.80.0090.00514.73
7.3.70.0020.01114.69
7.3.60.0060.00714.76
7.3.50.0060.00814.76
7.3.40.0030.01014.70
7.3.30.0050.00614.56
7.3.20.0080.00516.45
7.3.10.0070.00516.46
7.3.00.0110.00416.69
7.2.330.0070.01016.79
7.2.320.0040.01716.59
7.2.310.0050.01316.37
7.2.300.0130.00316.50
7.2.290.0040.01316.70
7.2.250.0080.01114.72
7.2.240.0110.00514.95
7.2.230.0120.00314.88
7.2.220.0050.00715.15
7.2.210.0110.00315.09
7.2.200.0060.00914.94
7.2.190.0020.01314.89
7.2.180.0060.01014.99
7.2.170.0080.00814.95
7.2.160.0040.01114.70
7.2.150.0080.00817.03
7.2.140.0090.00616.85
7.2.130.0060.00916.98
7.2.120.0000.01716.77
7.2.110.0000.01316.75
7.2.100.0090.00616.60
7.2.90.0060.00916.91
7.2.80.0070.01117.00
7.2.70.0000.01217.02
7.2.60.0120.00516.78
7.2.50.0070.00716.76
7.2.40.0110.00716.89
7.2.30.0070.01016.67
7.2.20.0070.01016.95
7.2.10.0070.00417.00
7.2.00.0060.01018.24
7.1.330.0040.00915.79
7.1.320.0030.00715.86
7.1.310.0040.01115.72
7.1.300.0040.00815.81
7.1.290.0050.00715.88
7.1.280.0070.00915.80
7.1.270.0080.00515.76
7.1.260.0030.01015.74
7.1.250.0000.01315.82
7.1.200.0070.00715.73
7.1.100.0000.01318.13
7.1.70.0040.00417.08
7.1.60.0130.00619.40
7.1.50.0100.01317.05
7.1.00.0000.03722.36
7.0.200.0030.00316.64
7.0.140.0070.07022.05
7.0.60.0170.07019.95
7.0.50.0070.08317.83
7.0.40.0030.05720.21
7.0.30.0270.08020.25
7.0.20.0200.09320.07
7.0.10.0030.05320.15
7.0.00.0100.05720.08
5.6.280.0130.06020.78
5.6.210.0100.08320.48
5.6.200.0030.04018.18
5.6.190.0170.04320.48
5.6.180.0300.07320.67
5.6.170.0230.04020.55
5.6.160.0070.04020.51
5.6.150.0070.04718.18
5.6.140.0070.08318.19
5.6.130.0030.05318.24
5.6.120.0100.08320.98
5.6.110.0070.08021.09
5.6.100.0030.09020.98
5.6.90.0130.07720.88
5.6.80.0100.07020.42
5.5.350.3300.04320.42
5.5.340.0070.08017.95
5.5.330.0030.09020.58
5.5.320.0170.04720.33
5.5.310.0300.05020.25
5.5.300.0070.08317.96
5.5.290.0100.07718.08
5.5.280.0070.04320.74
5.5.270.0100.07720.77
5.5.260.0070.04720.87
5.5.250.0030.04720.70
5.5.240.0230.05720.20
5.4.450.0270.07719.41
5.4.440.0130.06319.46
5.4.430.0270.07019.63
5.4.420.0170.04019.47
5.4.410.0230.04019.38
5.4.400.0070.04319.32
5.4.390.0070.04719.16
5.4.380.0170.04319.15
5.4.370.0170.03719.33
5.4.360.0200.03318.87
5.4.350.0230.03319.09
5.4.340.0230.03719.15
5.4.320.0230.05319.15
5.4.310.0200.07019.08
5.4.300.0170.04018.94
5.4.290.0200.06719.08
5.4.280.0200.05718.88
5.4.270.0200.05018.99
5.4.260.0130.04319.07
5.4.250.0170.05019.21
5.4.240.0300.05719.31
5.4.230.0330.05019.07
5.4.220.0100.04319.18
5.4.210.0230.03318.83
5.4.200.0230.04319.21
5.4.190.0130.07319.23
5.4.180.0330.06019.21
5.4.170.0200.07019.13
5.4.160.0200.04319.05
5.4.150.0200.07318.82
5.4.140.0200.04716.71
5.4.130.0230.05716.38
5.4.120.0170.03316.39
5.4.110.0100.07316.27
5.4.100.0200.05316.64
5.4.90.0230.04316.45
5.4.80.0270.06016.23
5.4.70.0230.06016.60
5.4.60.0200.04316.38
5.4.50.0330.03716.43
5.4.40.0270.05316.51
5.4.30.0170.07016.22
5.4.20.0270.03716.53
5.4.10.0230.03016.57
5.4.00.0170.04315.95
5.3.290.0230.07714.67
5.3.280.0330.06714.50
5.3.270.0270.07314.69
5.3.260.0270.04714.51
5.3.250.0170.04014.53
5.3.240.0200.07314.53
5.3.230.0200.03714.83
5.3.220.0230.05714.49
5.3.210.0200.04314.72
5.3.200.0230.03314.58
5.3.190.0300.06714.79
5.3.180.0170.05314.55
5.3.170.0170.03714.57
5.3.160.0200.08014.59
5.3.150.0270.07014.48
5.3.140.0300.06714.55
5.3.130.0230.06714.47
5.3.120.0200.06714.53
5.3.110.0230.07314.47
5.3.100.0270.05714.15
5.3.90.0270.06014.11
5.3.80.0430.03013.92
5.3.70.0270.04314.04
5.3.60.0300.03714.01
5.3.50.0270.06013.88
5.3.40.0200.07313.97
5.3.30.0270.05313.82
5.3.20.0170.06313.72
5.3.10.0300.06313.57
5.3.00.0230.05013.79
5.2.170.0170.06013.18
5.2.160.0170.06013.18
5.2.150.0230.05013.18
5.2.140.0270.05713.18
5.2.130.0170.06013.18
5.2.120.0230.05713.18
5.2.110.0270.05313.18
5.2.100.0170.04013.18
5.2.90.0300.04313.18
5.2.80.0200.06013.18
5.2.70.0200.05713.18
5.2.60.0230.02713.18
5.2.50.0230.05313.18
5.2.40.0170.04013.18
5.2.30.0170.03713.18
5.2.20.0130.05713.18
5.2.10.0130.06013.18
5.2.00.0170.03713.18
5.1.60.0230.05013.18
5.1.50.0200.03713.18
5.1.40.0170.05313.18
5.1.30.0270.04313.18
5.1.20.0130.05313.18
5.1.10.0200.04013.18
5.1.00.0230.02713.18
5.0.50.0070.03013.18
5.0.40.0070.02713.18
5.0.30.0070.05313.18
5.0.20.0100.04013.18
5.0.10.0070.03313.18
5.0.00.0130.04713.18
4.4.90.0070.02013.18
4.4.80.0100.01713.18
4.4.70.0070.03313.18
4.4.60.0100.03713.18
4.4.50.0100.02713.18
4.4.40.0170.04713.18
4.4.30.0070.02013.18
4.4.20.0100.03013.18
4.4.10.0130.01313.18
4.4.00.0070.05013.18
4.3.110.0070.02313.18
4.3.100.0030.02713.18
4.3.90.0070.04013.18
4.3.80.0030.04713.18
4.3.70.0070.02713.18
4.3.60.0070.02313.18
4.3.50.0130.01713.18
4.3.40.0070.02713.18
4.3.30.0030.02013.18
4.3.20.0030.03313.18
4.3.10.0030.02013.18
4.3.00.0000.04013.18

preferences:
46.89 ms | 401 KiB | 5 Q