3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface UserManagerInterface { } class UserManager implements UserManagerInterface { } class ParentClass { public function __construct(UserManagerInterface $userManager) { # code... } } class ChildClass extends ParentClass { public function __construct(UserManagerInterface $userManager) { parent::__construct($userManager); } } $um = new UserManager(); $cc = new ChildClass($um);

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.0060.01218.43
8.3.50.0090.00921.21
8.3.40.0130.00618.81
8.3.30.0100.00320.34
8.3.20.0070.00020.34
8.3.10.0040.00421.95
8.3.00.0090.00022.38
8.2.180.0110.00716.50
8.2.170.0070.00722.96
8.2.160.0030.01021.93
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0080.00020.72
8.2.110.0040.00422.04
8.2.100.0100.00317.78
8.2.90.0080.00019.05
8.2.80.0040.00419.25
8.2.70.0050.00317.50
8.2.60.0000.00717.80
8.2.50.0050.00318.07
8.2.40.0040.00419.94
8.2.30.0000.00719.50
8.2.20.0000.00817.71
8.2.10.0040.00417.69
8.2.00.0040.00417.68
8.1.280.0140.00425.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.82
8.1.230.0150.00019.17
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0000.00817.18
8.1.180.0040.00419.01
8.1.170.0040.00418.44
8.1.160.0070.00018.76
8.1.150.0040.00418.63
8.1.140.0040.00417.45
8.1.130.0000.00717.75
8.1.120.0080.00017.50
8.1.110.0040.00417.39
8.1.100.0080.00017.42
8.1.90.0030.00517.34
8.1.80.0040.00417.36
8.1.70.0040.00417.47
8.1.60.0000.00717.61
8.1.50.0070.00017.53
8.1.40.0000.00717.55
8.1.30.0040.00417.59
8.1.20.0000.00817.61
8.1.10.0050.00217.39
8.1.00.0060.00317.45
8.0.300.0070.00018.77
8.0.290.0060.00317.05
8.0.280.0030.00318.36
8.0.270.0080.00017.21
8.0.260.0030.00316.75
8.0.250.0030.00316.91
8.0.240.0000.00716.92
8.0.230.0030.00317.05
8.0.220.0000.00716.91
8.0.210.0000.00716.91
8.0.200.0050.00316.89
8.0.190.0090.00017.05
8.0.180.0000.00716.98
8.0.170.0040.00417.00
8.0.160.0000.00716.89
8.0.150.0000.00716.79
8.0.140.0000.00716.80
8.0.130.0050.00013.39
8.0.120.0000.00816.96
8.0.110.0080.00016.93
8.0.100.0040.00416.94
8.0.90.0000.00816.86
8.0.80.0140.00716.95
8.0.70.0030.00317.07
8.0.60.0080.00016.99
8.0.50.0070.00016.75
8.0.30.0120.00917.17
8.0.20.0110.00817.40
8.0.10.0000.00717.09
8.0.00.0060.01316.68
7.4.330.0050.00015.00
7.4.320.0000.00616.50
7.4.300.0060.00016.57
7.4.290.0000.00716.61
7.4.280.0070.00316.58
7.4.270.0040.00416.52
7.4.260.0050.00013.17
7.4.250.0000.00716.39
7.4.240.0030.00316.54
7.4.230.0070.00016.60
7.4.220.0120.01216.48
7.4.210.0070.00916.55
7.4.200.0000.00716.53
7.4.190.0080.00016.63
7.4.160.0080.01316.54
7.4.150.0140.00317.40
7.4.140.0060.01517.86
7.4.130.0060.01216.46
7.4.120.0090.00816.58
7.4.110.0030.01416.70
7.4.100.0100.01016.52
7.4.90.0170.00016.38
7.4.80.0000.01819.39
7.4.70.0050.01516.41
7.4.60.0090.00616.42
7.4.50.0000.00816.36
7.4.40.0080.00522.77
7.4.30.0070.01516.45
7.4.00.0060.01014.97
7.3.330.0030.00213.18
7.3.320.0040.00413.10
7.3.310.0000.00716.29
7.3.300.0030.00316.11
7.3.290.0150.00616.22
7.3.280.0090.00816.24
7.3.270.0060.01217.40
7.3.260.0070.01016.32
7.3.250.0130.00816.36
7.3.240.0110.00816.30
7.3.230.0070.01116.39
7.3.210.0060.01216.24
7.3.200.0090.00919.39
7.3.190.0100.00716.25
7.3.180.0100.00716.36
7.3.170.0070.01316.27
7.3.160.0080.00816.46
7.3.120.0060.00914.65
7.2.330.0100.00716.28
7.2.320.0130.00916.43
7.2.310.0030.01416.64
7.2.300.0110.00816.64
7.2.290.0080.00816.67
7.2.60.0070.00416.92
7.2.00.0030.01019.34
7.1.200.0100.00215.50
7.1.100.0090.00618.07
7.1.70.0030.00517.21
7.1.60.0060.01919.32
7.1.50.0100.01016.98
7.1.00.0030.05722.35
7.0.200.0000.00816.70
7.0.140.0070.07022.09
7.0.100.0170.07720.17
7.0.90.0170.07019.93
7.0.80.0230.08019.92
7.0.70.0130.07019.89
7.0.60.0100.08320.05
7.0.50.0070.07720.14
7.0.40.0100.08720.09
7.0.30.0130.08020.08
7.0.20.0100.06020.18
7.0.10.0130.06720.09
7.0.00.0100.08020.04
5.6.280.0030.07021.02
5.6.250.0100.05320.70
5.6.240.0170.07020.64
5.6.230.0030.04320.51
5.6.220.0130.07720.63
5.6.210.0070.08020.47
5.6.200.0030.04321.07
5.6.190.0000.08320.95
5.6.180.0070.08721.01
5.6.170.0000.08321.07
5.6.160.0000.08721.14
5.6.150.0030.08721.02
5.6.140.0170.06021.10
5.6.130.0100.03721.02
5.6.120.0030.08720.96
5.6.110.0030.08321.00
5.6.100.0000.09320.88
5.6.90.0070.08021.13
5.6.80.0130.07720.56
5.6.70.0030.07720.42
5.6.60.0070.08020.31
5.6.50.0130.07320.49
5.6.40.0100.07720.39
5.6.30.0100.07320.41
5.6.20.0030.08020.50
5.6.10.0300.04320.31
5.6.00.0130.08020.48
5.5.380.0100.05720.43
5.5.370.0070.07020.39
5.5.360.0070.08320.34
5.5.350.0200.07320.46
5.5.340.0030.08720.88
5.5.330.0100.08020.94
5.5.320.0000.08720.77
5.5.310.0000.06020.91
5.5.300.0070.08020.78
5.5.290.0070.08020.81
5.5.280.0100.08720.88
5.5.270.0100.08320.84
5.5.260.0070.07720.83
5.5.250.0100.05720.45
5.5.240.0070.04320.30
5.5.230.0100.07720.20
5.5.220.0100.07720.18
5.5.210.0030.08320.22
5.5.200.0130.07720.27
5.5.190.0030.08320.25
5.5.180.0130.07020.14
5.5.160.0100.07320.16
5.5.150.0170.06320.23
5.5.140.0070.07720.22
5.5.130.0100.06719.99
5.5.120.0130.07320.25
5.5.110.0130.07020.25
5.5.100.0070.06320.18
5.5.90.0100.05320.07
5.5.80.0100.06320.08
5.5.70.0070.07720.02
5.5.60.0100.07320.04
5.5.50.0000.08320.15
5.5.40.0170.06720.09
5.5.30.0070.08320.09
5.5.20.0170.05720.16
5.5.10.0170.06720.06
5.5.00.0030.04720.11
5.4.450.0070.07319.47
5.4.440.0170.06719.18
5.4.430.0100.07319.41
5.4.420.0170.07019.41
5.4.410.0100.07719.32
5.4.400.0030.04719.21
5.4.390.0070.06319.05
5.4.380.0100.06719.23
5.4.370.0130.07019.09
5.4.360.0000.08719.04
5.4.350.0070.07319.01
5.4.340.0070.05718.90
5.4.320.0070.07019.14
5.4.310.0130.04319.03
5.4.300.0070.05019.18
5.4.290.0070.07319.22
5.4.280.0030.07718.88
5.4.270.0070.06719.16
5.4.260.0100.07718.88
5.4.250.0130.06719.03
5.4.240.0100.06719.02
5.4.230.0000.07719.03
5.4.220.0100.06719.04
5.4.210.0130.06719.15
5.4.200.0030.07719.12
5.4.190.0070.04719.13
5.4.180.0100.07319.16
5.4.170.0030.07719.03
5.4.160.0070.07719.16
5.4.150.0070.08718.88
5.4.140.0030.07716.36
5.4.130.0030.07316.45
5.4.120.0100.06716.20
5.4.110.0170.06016.52
5.4.100.0130.07016.57
5.4.90.0170.05716.32
5.4.80.0100.04316.53
5.4.70.0070.07016.38
5.4.60.0130.06016.30
5.4.50.0070.06716.46
5.4.40.0170.06316.38
5.4.30.0030.07716.30
5.4.20.0100.07016.46
5.4.10.0070.06316.36
5.4.00.0130.03315.58
5.3.290.0100.07014.65
5.3.280.0030.07314.73
5.3.270.0130.06714.73
5.3.260.0130.07014.67
5.3.250.0100.04014.59
5.3.240.0000.07714.67
5.3.230.0100.06014.74
5.3.220.0070.07714.58
5.3.210.0100.07714.63
5.3.200.0000.08314.63
5.3.190.0070.04014.71
5.3.180.0070.07014.68
5.3.170.0100.07314.52
5.3.160.0170.05314.63
5.3.150.0100.06014.54
5.3.140.0070.07314.54
5.3.130.0070.07714.69
5.3.120.0070.07314.48
5.3.110.0000.04714.55
5.3.100.0100.07014.18
5.3.90.0030.07313.96
5.3.80.0130.05714.11
5.3.70.0070.07313.96
5.3.60.0030.05714.06
5.3.50.0030.07714.07
5.3.40.0070.04014.01
5.3.30.0000.08013.82
5.3.20.0030.05013.81
5.3.10.0030.06713.73
5.3.00.0000.08013.60
5.2.170.0070.06711.20
5.2.160.0000.05011.07
5.2.150.0000.06011.06
5.2.140.0000.05311.08
5.2.130.0030.04010.97
5.2.120.0030.03011.04
5.2.110.0030.06710.97
5.2.100.0000.05311.23
5.2.90.0000.06311.25
5.2.80.0030.03711.05
5.2.70.0030.06311.17
5.2.60.0030.03711.16
5.2.50.0100.04711.14
5.2.40.0000.06311.14
5.2.30.0070.05311.07
5.2.20.0030.05011.09
5.2.10.0030.06010.79
5.2.00.0000.06010.77
5.1.60.0070.05010.15
5.1.50.0030.04710.15
5.1.40.0100.04310.15
5.1.30.0030.05710.38
5.1.20.0070.04310.36
5.1.10.0130.04710.16
5.1.00.0030.05710.15
5.0.50.0070.03710.15
5.0.40.0070.04310.15
5.0.30.0000.07010.15
5.0.20.0030.02310.15
5.0.10.0000.04010.15
5.0.00.0030.06710.15
4.4.90.0000.03310.15
4.4.80.0130.02010.15
4.4.70.0030.03010.15
4.4.60.0000.02710.15
4.4.50.0070.02710.15
4.4.40.0000.04710.15
4.4.30.0030.03710.15
4.4.20.0000.03010.15
4.4.10.0070.03310.15
4.4.00.0070.03010.15
4.3.110.0030.03310.15
4.3.100.0030.03310.15
4.3.90.0000.03710.15
4.3.80.0030.04710.15
4.3.70.0030.02710.15
4.3.60.0000.03710.15
4.3.50.0070.02710.15
4.3.40.0000.05010.15
4.3.30.0000.03310.15
4.3.20.0030.03010.15
4.3.10.0000.03710.15
4.3.00.0000.03010.15

preferences:
37.12 ms | 401 KiB | 5 Q