3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IA {} class IB implements IA {} abstract class A { public function __construct(IA $ia) { echo "works!"; } } class B extends A { public function __construct(IB $ib) { parent::__construct($ib); } } $b = new B(new IA());

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.01118.43
8.3.50.0090.01121.96
8.3.40.0040.01118.79
8.3.30.0070.00718.86
8.3.20.0050.00220.29
8.3.10.0000.00721.78
8.3.00.0040.00419.00
8.2.180.0070.01316.38
8.2.170.0130.00322.96
8.2.160.0110.01119.04
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.20
8.2.120.0020.00526.16
8.2.110.0040.00422.26
8.2.100.0090.00318.03
8.2.90.0000.00819.23
8.2.80.0000.00817.97
8.2.70.0030.00717.63
8.2.60.0090.00017.80
8.2.50.0000.00818.10
8.2.40.0030.00520.61
8.2.30.0090.00019.23
8.2.20.0000.00717.75
8.2.10.0040.00417.93
8.2.00.0040.00418.13
8.1.280.0030.01725.92
8.1.270.0040.00423.87
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00923.92
8.1.230.0050.00517.83
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0030.00322.10
8.1.150.0040.00418.73
8.1.140.0000.00718.87
8.1.130.0020.00517.55
8.1.120.0040.00417.33
8.1.110.0040.00417.28
8.1.100.0080.00017.32
8.1.90.0040.00417.38
8.1.80.0040.00417.39
8.1.70.0000.00717.41
8.1.60.0040.00417.54
8.1.50.0000.00717.45
8.1.40.0040.00417.34
8.1.30.0040.00417.58
8.1.20.0000.00717.52
8.1.10.0080.00017.43
8.1.00.0000.00817.33
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0030.00318.45
8.0.270.0030.00316.88
8.0.260.0030.00317.32
8.0.250.0000.00717.04
8.0.240.0000.00616.86
8.0.230.0070.00016.91
8.0.220.0040.00416.84
8.0.210.0040.00416.86
8.0.200.0030.00616.88
8.0.190.0030.00517.04
8.0.180.0050.00316.86
8.0.170.0000.00717.00
8.0.160.0040.00316.87
8.0.150.0000.00716.87
8.0.140.0110.00016.92
8.0.130.0030.00313.30
8.0.120.0040.00416.96
8.0.110.0050.00316.94
8.0.100.0060.00316.91
8.0.90.0050.00217.02
8.0.80.0060.00916.93
8.0.70.0040.00417.01
8.0.60.0040.00416.96
8.0.50.0000.00716.97
8.0.30.0160.00117.11
8.0.20.0130.00817.40
8.0.10.0040.00417.04
8.0.00.0060.01516.83
7.4.330.0050.00015.08
7.4.320.0060.00016.49
7.4.300.0090.00016.54
7.4.290.0000.00716.52
7.4.280.0000.00816.42
7.4.270.0000.00716.53
7.4.260.0070.00016.56
7.4.250.0000.00816.51
7.4.240.0030.00316.55
7.4.230.0000.00716.37
7.4.220.0130.00716.43
7.4.210.0080.00916.49
7.4.200.0000.00716.56
7.4.160.0120.00416.50
7.4.150.0180.00017.40
7.4.140.0090.00817.86
7.4.130.0130.00516.49
7.4.120.0080.00916.58
7.4.110.0100.00716.38
7.4.100.0080.00816.61
7.4.90.0040.01216.48
7.4.80.0030.01619.39
7.4.70.0090.00916.36
7.4.60.0130.01016.62
7.4.50.0120.00316.58
7.4.40.0170.00416.50
7.4.30.0100.01316.66
7.4.00.0090.00615.21
7.3.330.0030.00313.38
7.3.320.0000.00513.20
7.3.310.0000.00716.24
7.3.300.0000.00816.22
7.3.290.0000.00716.36
7.3.280.0060.01216.34
7.3.270.0060.01017.40
7.3.260.0130.00816.49
7.3.250.0110.00616.45
7.3.240.0120.00516.24
7.3.230.0070.01116.39
7.3.210.0100.00716.40
7.3.200.0170.00319.39
7.3.190.0070.01016.29
7.3.180.0090.00916.41
7.3.170.0090.00916.39
7.3.160.0150.00316.46
7.2.330.0170.00616.44
7.2.320.0140.01016.38
7.2.310.0110.00516.34
7.2.300.0120.00616.72
7.2.290.0140.00316.59
7.2.60.0070.00716.50
7.2.00.0070.00719.23
7.1.200.0040.00415.74
7.1.100.0000.00817.62
7.1.70.0060.00317.03
7.1.60.0090.00519.87
7.1.50.0100.01416.62
7.1.00.0000.08022.33
7.0.200.0040.00714.98
7.0.80.0100.05719.89
7.0.70.1070.04720.01
7.0.60.0970.05719.98
7.0.50.1000.05020.36
7.0.40.1100.04020.32
7.0.30.1030.05320.27
7.0.20.0900.05720.29
7.0.10.0870.07720.20
7.0.00.1100.05020.26
5.6.280.0030.07021.07
5.6.220.0800.05720.75
5.6.210.0830.05720.66
5.6.200.0870.06021.01
5.6.190.0730.06321.18
5.6.180.0830.05321.18
5.6.170.0770.06021.14
5.6.160.0870.05021.09
5.6.150.0830.05321.01
5.6.140.0830.05321.01
5.6.130.0770.06721.01
5.6.120.0100.06321.02
5.6.110.0500.05321.18
5.6.100.0800.06021.02
5.6.90.0830.05321.04
5.6.80.0900.05720.41
5.6.70.0700.06720.47
5.6.60.0730.06020.46
5.6.50.0870.05320.48
5.6.40.0800.05720.46
5.6.30.0870.05720.46
5.6.20.0870.05320.50
5.6.10.1070.08020.45
5.6.00.0930.05320.48
5.5.360.0800.06020.61
5.5.350.0800.06020.38
5.5.340.0730.07320.94
5.5.330.0930.05320.95
5.5.320.0900.05720.95
5.5.310.0830.05320.89
5.5.300.0800.06020.82
5.5.290.0900.05720.89
5.5.280.0100.07020.84
5.5.270.0700.07020.75
5.5.260.0700.07020.96
5.5.250.0870.05320.63
5.5.240.0800.05020.36
5.5.230.0900.06320.21
5.5.220.0830.05320.32
5.5.210.0870.04720.32
5.5.200.0770.06020.30
5.5.190.0870.06320.33
5.5.180.0800.05720.25
5.5.160.1130.06720.17
5.5.150.1030.06720.29
5.5.140.1070.03320.27
5.5.130.0900.05320.28
5.5.120.0770.06020.18
5.5.110.0900.05720.32
5.5.100.0930.04320.23
5.5.90.0830.05320.15
5.5.80.0830.05720.19
5.5.70.0800.05720.02
5.5.60.0830.04719.99
5.5.50.0870.05720.15
5.5.40.0830.05320.18
5.5.30.0800.05720.22
5.5.20.0830.05320.17
5.5.10.0770.05320.19
5.5.00.0770.05320.04

preferences:
64.91 ms | 401 KiB | 5 Q