3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct(array $a) {} } class B extends A { public function __construct(DateTime $dt) {} } var_dump(new B(new DateTime));

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.00718.68
8.3.50.0090.00618.06
8.3.40.0080.00818.96
8.3.30.0090.00619.13
8.3.20.0080.00020.04
8.3.10.0070.00021.97
8.3.00.0070.00019.02
8.2.180.0030.01218.18
8.2.170.0140.00022.96
8.2.160.0090.00920.32
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.64
8.2.110.0090.00022.24
8.2.100.0040.00817.84
8.2.90.0040.00419.40
8.2.80.0000.00818.50
8.2.70.0000.00917.50
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0080.00018.15
8.2.30.0040.00418.01
8.2.20.0030.00517.80
8.2.10.0070.00018.02
8.2.00.0080.00017.80
8.1.280.0110.00425.92
8.1.270.0080.00018.71
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00023.75
8.1.230.0070.00419.00
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00418.89
8.1.150.0040.00418.83
8.1.140.0040.00417.42
8.1.130.0030.00317.84
8.1.120.0000.00717.54
8.1.110.0000.00717.57
8.1.100.0000.00817.53
8.1.90.0000.00817.54
8.1.80.0000.00717.43
8.1.70.0000.00717.44
8.1.60.0040.00417.66
8.1.50.0000.00817.53
8.1.40.0020.00517.57
8.1.30.0030.00517.63
8.1.20.0080.00017.69
8.1.10.0000.00717.61
8.1.00.0040.00417.55
8.0.300.0000.00718.77
8.0.290.0060.00316.88
8.0.280.0000.00718.44
8.0.270.0040.00417.33
8.0.260.0030.00317.28
8.0.250.0000.00717.19
8.0.240.0030.00317.16
8.0.230.0000.00717.08
8.0.220.0040.00417.03
8.0.210.0030.00317.04
8.0.200.0060.00016.98
8.0.190.0070.00017.15
8.0.180.0000.00716.96
8.0.170.0000.00717.05
8.0.160.0070.00017.07
8.0.150.0030.00317.01
8.0.140.0060.00316.99
8.0.130.0000.00613.43
8.0.120.0030.00517.01
8.0.110.0080.00017.00
8.0.100.0070.00017.04
8.0.90.0050.00316.93
8.0.80.0070.00817.03
8.0.70.0030.00517.06
8.0.60.0040.00416.90
8.0.50.0040.00416.98
8.0.30.0120.00717.33
8.0.20.0110.00817.41
8.0.10.0030.00516.98
8.0.00.0080.01116.77
7.4.330.0000.00515.03
7.4.320.0030.00316.62
7.4.300.0000.00616.57
7.4.290.0060.00016.66
7.4.280.0030.00516.51
7.4.270.0050.00216.48
7.4.260.0080.00316.63
7.4.250.0000.00816.60
7.4.240.0040.00316.56
7.4.230.0050.00216.42
7.4.220.0070.01416.45
7.4.210.0030.01316.63
7.4.200.0070.00016.55
7.4.160.0080.00816.43
7.4.150.0110.00717.40
7.4.140.0120.00517.86
7.4.130.0050.01416.52
7.4.120.0130.00316.58
7.4.110.0070.01016.70
7.4.100.0100.00716.38
7.4.90.0080.00816.63
7.4.80.0150.00719.39
7.4.70.0070.01316.65
7.4.60.0100.00616.66
7.4.50.0000.00816.58
7.4.40.0080.00916.61
7.4.30.0000.01816.72
7.4.00.0030.01515.09
7.3.330.0050.00013.22
7.3.320.0050.00013.29
7.3.310.0000.00716.24
7.3.300.0070.00016.37
7.3.290.0080.00816.35
7.3.280.0100.00816.34
7.3.270.0120.00617.40
7.3.260.0130.00316.54
7.3.250.0070.01116.44
7.3.240.0180.00916.35
7.3.230.0090.00616.62
7.3.210.0160.00316.48
7.3.200.0100.01019.39
7.3.190.0090.00616.64
7.3.180.0110.00716.40
7.3.170.0170.00016.56
7.3.160.0120.00316.43
7.2.330.0090.00916.37
7.2.320.0150.00316.73
7.2.310.0070.01016.60
7.2.300.0100.00716.70
7.2.290.0100.01316.79
7.2.00.0030.01319.56
7.1.100.0040.00718.11
7.1.70.0030.00617.40
7.1.60.0000.01119.22
7.1.50.0080.01117.05
7.1.00.0070.07322.40
7.0.200.0040.00417.00
7.0.140.0000.07322.00
7.0.60.0170.07319.86
7.0.50.0100.05317.89
7.0.40.0070.08320.05
7.0.30.2270.05020.25
7.0.20.0230.04320.07
7.0.10.0070.04320.25
7.0.00.0000.04320.06
5.6.280.0130.06321.04
5.6.210.0130.06020.73
5.6.200.0070.04718.19
5.6.190.0100.08320.50
5.6.180.0370.06720.62
5.6.170.0370.07020.58
5.6.160.0070.08320.71
5.6.150.0070.07318.22
5.6.140.0030.08718.21
5.6.130.0100.04318.18
5.6.120.0070.08720.90
5.6.110.0130.03321.06
5.6.100.0130.07721.00
5.6.90.0100.04721.10
5.6.80.0030.04320.37
5.5.350.0200.08020.37
5.5.340.0100.04317.96
5.5.330.0030.04020.13
5.5.320.0230.05720.34
5.5.310.0270.09020.25
5.5.300.0070.08017.94
5.5.290.0100.06717.98
5.5.280.0070.03720.73
5.5.270.0030.07320.96
5.5.260.0070.04320.97
5.5.250.0070.08320.70
5.5.240.0030.04020.20
5.4.450.0270.06319.58
5.4.440.0770.05019.45
5.4.430.0100.05319.19
5.4.420.0670.05319.60
5.4.410.0200.06319.41
5.4.400.0570.04719.00
5.4.390.0700.05718.84
5.4.380.0130.06318.69
5.4.370.0130.06018.55
5.4.360.0330.05318.61
5.4.350.0200.05718.47
5.4.340.0270.05318.64
5.4.320.0200.06018.49
5.4.310.0270.04718.54
5.4.300.0270.05718.66
5.4.290.0230.05718.55
5.4.280.0170.05718.59
5.4.270.0300.05718.68
5.4.260.0130.06718.57
5.4.250.0400.05718.62
5.4.240.0370.04018.50
5.4.230.0170.05318.71
5.4.220.0270.05318.45
5.4.210.0230.05318.74
5.4.200.0200.05316.55
5.4.190.0200.05018.54
5.4.180.0330.05318.70
5.4.170.0300.04718.74
5.4.160.0270.05318.57
5.4.150.0230.05718.64
5.4.140.0300.06716.22
5.4.130.0200.04716.27
5.4.120.0130.07316.29
5.4.110.0330.05316.18
5.4.100.0230.06716.32
5.4.90.0230.06016.16
5.4.80.0170.06316.28
5.4.70.0230.06716.18
5.4.60.0300.04016.41
5.4.50.0270.04316.16
5.4.40.0330.05316.42
5.4.30.0130.05716.20
5.4.20.0400.05316.20
5.4.10.0230.04716.38
5.4.00.0230.06015.75
5.3.290.0300.06714.66
5.3.280.0200.06714.60
5.3.270.0230.06014.63
5.3.260.0270.06714.83
5.3.250.0270.06714.65
5.3.240.0400.05014.77
5.3.230.0230.04714.67
5.3.220.0200.07014.73
5.3.210.0170.06714.57
5.3.200.0130.06014.55
5.3.190.0230.05314.70
5.3.180.0230.04714.60
5.3.170.0200.05314.67
5.3.160.0100.06014.74
5.3.150.0200.04714.79
5.3.140.0200.07014.63
5.3.130.0230.06014.59
5.3.120.0200.05014.53
5.3.110.0130.05714.73
5.3.100.0170.07014.08
5.3.90.0200.06714.07
5.3.80.0200.05714.08
5.3.70.0530.05714.10
5.3.60.0800.04014.06
5.3.50.0800.04314.02
5.3.40.0600.06013.99
5.3.30.0830.05013.93
5.3.20.0770.06013.90
5.3.10.0800.05713.71
5.3.00.0630.05313.74
5.2.170.0530.05011.21
5.2.160.0830.04711.26
5.2.150.0600.04311.18
5.2.140.0570.04711.21
5.2.130.0430.04711.18
5.2.120.0700.03711.23
5.2.110.0170.03711.14
5.2.100.0100.04311.09
5.2.90.0200.04011.18
5.2.80.0030.05311.23
5.2.70.0170.04711.20
5.2.60.0200.03711.11
5.2.50.0200.03711.03
5.2.40.0170.04011.04
5.2.30.0030.05011.03
5.2.20.0100.04011.07
5.2.10.0100.04010.92
5.2.00.0070.04710.83
5.1.60.0200.03310.05
5.1.50.0270.03010.00
5.1.40.0130.03310.02
5.1.30.0070.05010.34
5.1.20.0170.04310.36
5.1.10.0200.03710.06
5.1.00.0300.03310.11
5.0.50.0130.0338.55
5.0.40.0170.0278.40
5.0.30.0000.0508.36
5.0.20.0100.0338.39
5.0.10.0200.0278.21
5.0.00.0100.0508.25
4.4.90.0030.0236.89
4.4.80.0100.0336.89
4.4.70.0070.0306.89
4.4.60.0100.0306.89
4.4.50.0030.0336.89
4.4.40.0070.0376.89
4.4.30.0030.0276.89
4.4.20.0100.0276.89
4.4.10.0100.0306.89
4.4.00.0130.0376.89
4.3.110.0000.0376.89
4.3.100.0030.0276.89
4.3.90.0130.0136.89
4.3.80.0070.0336.89
4.3.70.0070.0276.89
4.3.60.0070.0306.89
4.3.50.0030.0336.89
4.3.40.0070.0376.89
4.3.30.0070.0236.89
4.3.20.0070.0276.89
4.3.10.0030.0306.89
4.3.00.0070.0207.63

preferences:
48.85 ms | 400 KiB | 5 Q