3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Type {} class SomeType implements Type {} abstract class TypeUser { public function __construct(Type $type) {} public function test(Type $type) {} } class SomeTypeUser extends TypeUser { public function __construct(SomeType $type) {} public function test(SomeType $type) {} } $type = new SomeType(); $obj = (new SomeTypeUser($type))->test($type);

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.0100.01018.11
8.3.50.0100.00717.80
8.3.40.0070.00718.67
8.3.30.0000.01418.82
8.3.20.0000.00820.38
8.3.10.0040.00423.53
8.3.00.0040.00420.84
8.2.180.0100.01016.32
8.2.170.0100.01022.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0150.00326.16
8.2.120.0040.00419.23
8.2.110.0040.00420.95
8.2.100.0040.00817.66
8.2.90.0060.00317.73
8.2.80.0040.00418.09
8.2.70.0080.00017.80
8.2.60.0040.00417.80
8.2.50.0000.00918.10
8.2.40.0000.00720.60
8.2.30.0000.00718.20
8.2.20.0080.00017.61
8.2.10.0000.00717.98
8.2.00.0080.00019.32
8.1.280.0060.01525.92
8.1.270.0030.00622.14
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.09
8.1.230.0080.00420.96
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0050.00318.66
8.1.160.0000.00722.17
8.1.150.0050.00218.52
8.1.140.0040.00417.38
8.1.130.0000.00717.72
8.1.120.0000.00817.31
8.1.110.0030.00317.30
8.1.100.0000.00717.44
8.1.90.0070.00017.38
8.1.80.0030.00317.36
8.1.70.0030.00317.25
8.1.60.0030.00617.34
8.1.50.0080.00017.35
8.1.40.0080.00017.46
8.1.30.0030.00617.49
8.1.20.0000.00817.50
8.1.10.0080.00017.36
8.1.00.0080.00017.30
8.0.300.0050.00320.23
8.0.290.0030.00616.63
8.0.280.0030.00518.38
8.0.270.0000.00817.18
8.0.260.0040.00417.27
8.0.250.0030.00316.95
8.0.240.0070.00016.88
8.0.230.0030.00517.01
8.0.220.0030.00316.90
8.0.210.0030.00316.87
8.0.200.0070.00016.90
8.0.190.0080.00016.84
8.0.180.0000.00716.73
8.0.170.0030.00616.87
8.0.160.0000.00716.89
8.0.150.0030.00316.80
8.0.140.0040.00416.87
8.0.130.0030.00313.37
8.0.120.0040.00416.77
8.0.110.0060.00316.95
8.0.100.0000.00816.90
8.0.90.0050.00216.80
8.0.80.0120.00916.88
8.0.70.0040.00416.99
8.0.60.0070.00016.74
8.0.50.0030.00616.95
8.0.30.0140.00717.02
8.0.20.0070.01117.40
8.0.10.0070.00016.89
8.0.00.0050.01116.57
7.4.330.0000.00515.14
7.4.320.0000.00816.48
7.4.300.0060.00016.41
7.4.290.0000.01116.57
7.4.280.0040.00416.61
7.4.270.0000.00716.49
7.4.260.0030.00316.59
7.4.250.0040.00416.48
7.4.240.0020.00516.53
7.4.230.0030.00316.58
7.4.220.0100.00716.55
7.4.210.0110.00416.50
7.4.200.0030.00316.59
7.4.160.0130.01016.47
7.4.150.0030.01617.40
7.4.140.0140.01817.86
7.4.130.0110.01016.46
7.4.120.0130.00416.49
7.4.110.0090.00816.50
7.4.100.0070.01116.75
7.4.90.0030.01316.66
7.4.80.0090.00919.39
7.4.70.0100.00816.56
7.4.60.0060.01316.55
7.4.50.0030.00616.50
7.4.40.0130.00616.61
7.4.30.0060.00916.41
7.4.00.0070.00714.98
7.3.330.0020.00213.25
7.3.320.0000.00513.07
7.3.310.0030.00316.35
7.3.300.0000.00716.32
7.3.290.0040.01116.38
7.3.280.0090.00916.32
7.3.270.0070.01017.40
7.3.260.0060.01516.20
7.3.250.0100.00716.52
7.3.240.0160.00316.41
7.3.230.0030.01316.39
7.3.210.0130.00316.43
7.3.200.0060.01019.39
7.3.190.0120.00616.38
7.3.180.0040.01416.29
7.3.170.0130.00316.53
7.3.160.0100.01016.53
7.3.120.0030.01014.70
7.2.330.0100.00716.60
7.2.320.0070.01216.66
7.2.310.0090.00916.53
7.2.300.0040.01216.43
7.2.290.0100.00716.58
7.2.60.0040.01216.88
7.2.00.0060.00619.07
7.1.200.0040.00815.53
7.1.100.0040.00818.13
7.1.70.0000.01217.12
7.1.60.0130.00919.70
7.1.50.0100.01616.75
7.1.00.0030.07722.51
7.0.200.0000.01016.46
7.0.140.0030.07321.94
7.0.60.0070.08319.89
7.0.50.0070.08017.85
7.0.40.0100.04720.09
7.0.30.0370.04020.10
7.0.20.0170.04320.24
7.0.10.0070.04020.16
7.0.00.0100.08020.30
5.6.280.0130.06320.91
5.6.210.0030.04020.76
5.6.200.0030.04018.24
5.6.190.0000.06320.39
5.6.180.0170.08720.62
5.6.170.0270.07320.62
5.6.160.0130.07720.48
5.6.150.0100.05018.27
5.6.140.0070.07718.25
5.6.130.0070.07318.18
5.6.120.0100.08020.99
5.6.110.0070.03720.98
5.6.100.0100.07321.18
5.6.90.0030.06720.96
5.6.80.0030.06020.36
5.5.350.3500.04020.48
5.5.340.0130.08017.98
5.5.330.0170.04320.28
5.5.320.0230.05020.28
5.5.310.0230.08320.38
5.5.300.0000.04018.09
5.5.290.0100.07717.99
5.5.280.0000.04320.89
5.5.270.0130.07720.85
5.5.260.0230.05720.73
5.5.250.0030.04020.59
5.5.240.0100.08320.11
5.4.450.0030.08019.41
5.4.440.0070.04319.49
5.4.430.0000.05019.47
5.4.420.0030.05019.18
5.4.410.0000.06719.28
5.4.400.0030.04319.11
5.4.390.0030.07719.17
5.4.380.0100.05019.06
5.4.370.0000.07719.24
5.4.360.0000.06019.14
5.4.350.0100.06319.15
5.4.340.0070.07319.05
5.4.320.0100.04019.14
5.4.310.0030.03719.23
5.4.300.0030.06019.19
5.4.290.0030.03319.06
5.4.280.0000.04018.85
5.4.270.0030.03719.13
5.4.260.0100.03319.21
5.4.250.0030.03319.14
5.4.240.0070.03018.87
5.4.230.0030.03319.16
5.4.220.0000.03719.14
5.4.210.0030.04018.94
5.4.200.0000.03719.23
5.4.190.0000.03719.21
5.4.180.0000.03719.07
5.4.170.0000.03718.86
5.4.160.0100.03318.93
5.4.150.0000.03718.96
5.4.140.0030.03316.45
5.4.130.0000.03316.33
5.4.120.0000.03316.33
5.4.110.0030.03716.56
5.4.100.0000.03716.50
5.4.90.0030.06716.43
5.4.80.0000.03316.44
5.4.70.0030.03316.62
5.4.60.0000.03316.25
5.4.50.0030.03316.43
5.4.40.0030.03016.49
5.4.30.0000.03316.42
5.4.20.0000.04316.53
5.4.10.0030.04716.42
5.4.00.0000.06715.75
5.3.290.0000.03714.60
5.3.280.0000.04014.59
5.3.270.0000.03714.52
5.3.260.0000.04314.51
5.3.250.0030.03314.63
5.3.240.0030.03314.51
5.3.230.0030.03314.61
5.3.220.0000.03714.62
5.3.210.0000.04314.66
5.3.200.0000.03714.57
5.3.190.0030.03714.59
5.3.180.0030.04014.68
5.3.170.0000.04014.65
5.3.160.0030.03314.62
5.3.150.0000.03714.57
5.3.140.0000.04314.72
5.3.130.0000.03714.46
5.3.120.0000.04014.48
5.3.110.0030.05714.60
5.3.100.0100.07014.04
5.3.90.0070.03714.00
5.3.80.0000.04713.96
5.3.70.0030.03714.12
5.3.60.0070.06014.06
5.3.50.0000.07313.89
5.3.40.0000.07713.98
5.3.30.0030.05313.84
5.3.20.0070.06713.66
5.3.10.0030.07313.58
5.3.00.0030.05013.72
5.2.170.0070.04011.24
5.2.160.0070.04711.06
5.2.150.0000.04711.07
5.2.140.0030.03711.11
5.2.130.0000.03311.16
5.2.120.0000.05711.07
5.2.110.0100.03311.12
5.2.100.0000.04011.03
5.2.90.0000.03311.27
5.2.80.0000.03011.03
5.2.70.0000.04011.02
5.2.60.0000.04711.06
5.2.50.0030.05011.00
5.2.40.0070.06311.03
5.2.30.0070.05311.04
5.2.20.0030.03311.04
5.2.10.0100.05310.96
5.2.00.0030.04310.65
5.1.60.0000.03710.06
5.1.50.0000.03310.06
5.1.40.0030.0339.90
5.1.30.0070.05310.40
5.1.20.0070.03710.52
5.1.10.0130.0279.97
5.1.00.0070.03710.20
5.0.50.0000.0409.88
5.0.40.0030.0379.88
5.0.30.0030.0679.88
5.0.20.0000.0439.88
5.0.10.0000.0309.88
5.0.00.0030.0639.88
4.4.90.0030.0239.88
4.4.80.0030.0279.88
4.4.70.0070.0179.88
4.4.60.0100.0279.88
4.4.50.0000.0279.88
4.4.40.0000.0509.88
4.4.30.0000.0309.88
4.4.20.0000.0339.88
4.4.10.0030.0279.88
4.4.00.0000.0509.88
4.3.110.0000.0339.88
4.3.100.0000.0339.88
4.3.90.0000.0179.88
4.3.80.0000.0279.88
4.3.70.0000.0379.88
4.3.60.0000.0209.88
4.3.50.0030.0179.88
4.3.40.0000.0539.88
4.3.30.0000.0279.88
4.3.20.0000.0209.88
4.3.10.0000.0209.88
4.3.00.0000.0379.88

preferences:
52.71 ms | 400 KiB | 5 Q