3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); abstract class Base { public function __construct(A $a, array $array) { } } class A{} class B{} class Concrete extends Base { public function __construct(B $b, $scalar, $scalar2) { } } new Concrete(new B, '', '');

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.40.0150.00018.84
8.3.30.0070.01319.02
8.3.20.0080.00020.23
8.3.10.0040.00422.00
8.3.00.0070.00022.34
8.2.170.0100.00322.96
8.2.160.0070.00719.03
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0080.00019.11
8.2.110.0070.00322.10
8.2.100.0070.00417.66
8.2.90.0040.00417.63
8.2.80.0050.00317.97
8.2.70.0000.00817.68
8.2.60.0070.00018.09
8.2.50.0080.00018.10
8.2.40.0050.00319.23
8.2.30.0040.00420.30
8.2.20.0070.00017.43
8.2.10.0030.00517.48
8.2.00.0000.00717.55
8.1.270.0000.01021.83
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.83
8.1.230.0060.00618.93
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0050.00517.10
8.1.190.0000.00816.98
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0020.00518.80
8.1.150.0060.00318.61
8.1.140.0040.00417.35
8.1.130.0050.00317.80
8.1.120.0030.00517.32
8.1.110.0000.00817.18
8.1.100.0050.00217.38
8.1.90.0000.00717.31
8.1.80.0040.00317.25
8.1.70.0030.00317.20
8.1.60.0030.00617.52
8.1.50.0040.00417.49
8.1.40.0000.00717.44
8.1.30.0000.00817.61
8.1.20.0080.00017.46
8.1.10.0040.00417.46
8.1.00.0070.00317.33
8.0.300.0070.00020.05
8.0.290.0040.00416.63
8.0.280.0040.00418.28
8.0.270.0000.00717.14
8.0.260.0040.00416.85
8.0.250.0070.00016.80
8.0.240.0060.00316.93
8.0.230.0000.00716.92
8.0.220.0040.00416.84
8.0.210.0000.00716.69
8.0.200.0080.00016.89
8.0.190.0000.00816.88
8.0.180.0040.00416.77
8.0.170.0050.00216.80
8.0.160.0040.00416.72
8.0.150.0050.00316.66
8.0.140.0040.00416.62
8.0.130.0050.00013.34
8.0.120.0050.00316.75
8.0.110.0050.00216.69
8.0.100.0000.00716.62
8.0.90.0030.00516.86
8.0.80.0120.01216.82
8.0.70.0050.00216.88
8.0.60.0070.00016.89
8.0.50.0000.00716.67
8.0.30.0140.00516.76
8.0.20.0130.00517.40
8.0.10.0040.00416.79
8.0.00.0110.01216.69
7.4.330.0000.00615.00
7.4.320.0060.00016.39
7.4.300.0000.00616.43
7.4.290.0000.00716.44
7.4.280.0040.00816.53
7.4.270.0030.00316.43
7.4.260.0060.00016.53
7.4.250.0080.00016.50
7.4.240.0020.00516.44
7.4.230.0000.00616.51
7.4.220.0190.00616.51
7.4.210.0040.01016.51
7.4.200.0070.00016.63
7.4.190.0030.00316.39
7.4.160.0110.00416.24
7.4.150.0080.00817.40
7.4.140.0110.00717.86
7.4.130.0100.00716.39
7.4.120.0130.00316.63
7.4.110.0110.00616.48
7.4.100.0030.01716.47
7.4.90.0090.01316.49
7.4.80.0100.01319.39
7.4.70.0030.01316.32
7.4.60.0030.01316.35
7.4.50.0040.00416.50
7.4.40.0030.01222.77
7.4.30.0070.00916.57
7.4.00.0090.00714.81
7.3.330.0000.00613.17
7.3.320.0050.00013.32
7.3.310.0000.00716.20
7.3.300.0030.00316.16
7.3.290.0030.01016.22
7.3.280.0120.00516.22
7.3.270.0070.01017.40
7.3.260.0150.00316.24
7.3.250.0080.01016.33
7.3.240.0080.00816.13
7.3.230.0030.01316.39
7.3.210.0030.01416.43
7.3.200.0030.01319.39
7.3.190.0100.01316.32
7.3.180.0040.01516.38
7.3.170.0100.01016.40
7.3.160.0100.00716.27
7.3.120.0050.00914.69
7.3.110.0020.01314.68
7.3.100.0060.00814.58
7.3.90.0050.01014.79
7.3.80.0030.00614.50
7.3.70.0080.00714.86
7.3.60.0070.00514.71
7.3.50.0050.00914.50
7.3.40.0080.00714.76
7.3.30.0060.00614.70
7.3.20.0020.00916.42
7.3.10.0110.00616.47
7.3.00.0030.01016.64
7.2.330.0100.00716.70
7.2.320.0110.00616.45
7.2.310.0130.00316.57
7.2.300.0100.00716.31
7.2.290.0070.01416.59
7.2.250.0150.00715.07
7.2.240.0070.01014.55
7.2.230.0080.00814.77
7.2.220.0030.01015.02
7.2.210.0070.00714.85
7.2.200.0070.00414.90
7.2.190.0050.00914.72
7.2.180.0060.00914.79
7.2.170.0050.01014.89
7.2.160.0070.00715.04
7.2.150.0060.00916.68
7.2.140.0000.01016.88
7.2.130.0140.00316.79
7.2.120.0110.00416.64
7.2.110.0100.00716.83
7.2.100.0030.01416.71
7.2.90.0130.00316.53
7.2.80.0070.00716.76
7.2.70.0120.00316.62
7.2.60.0040.01016.71
7.2.50.0060.00316.75
7.2.40.0050.00816.85
7.2.30.0030.01016.71
7.2.20.0100.00316.85
7.2.10.0040.00416.93
7.2.00.0060.00517.83
7.1.330.0060.00615.66
7.1.320.0030.00915.62
7.1.310.0030.01015.52
7.1.300.0020.00715.61
7.1.290.0050.00615.63
7.1.280.0040.00715.77
7.1.270.0040.00915.49
7.1.260.0030.01015.56
7.1.250.0110.00415.66
7.1.200.0030.01015.63
7.1.70.0030.00717.05
7.1.60.0060.00617.09
7.1.50.0070.01816.99
7.1.00.0030.06022.45
7.0.200.0060.00916.74
7.0.140.0100.07021.98
7.0.60.0000.05319.89
7.0.50.0030.06317.95
7.0.40.0070.07320.16
7.0.30.0330.06720.06
7.0.20.0330.07320.19
7.0.10.0070.08320.23
7.0.00.0000.06720.30
5.6.280.0000.07721.03
5.6.210.0030.08320.52
5.6.200.0100.08018.19
5.6.190.0030.05020.61
5.6.180.0470.06320.54
5.6.170.0300.04320.56
5.6.160.0200.07020.52
5.6.150.0000.04018.18
5.6.140.0100.08018.21
5.6.130.0070.04018.14
5.6.120.0200.06321.00
5.6.110.0030.04321.09
5.6.100.0070.06021.02
5.6.90.0030.06020.94
5.6.80.0200.07020.39
5.5.350.0200.07720.34
5.5.340.0030.04318.02
5.5.330.0070.08020.35
5.5.320.3230.04320.35
5.5.310.0270.07720.35
5.5.300.0030.08718.08
5.5.290.0030.08317.94
5.5.280.0070.08020.66
5.5.270.0100.08720.76
5.5.260.0000.09020.77
5.5.250.0030.04320.70
5.5.240.0070.02720.23
5.4.450.0730.06019.37
5.4.440.0200.06019.19
5.4.430.0170.05319.60
5.4.420.0200.05719.47
5.4.410.0100.05319.02
5.4.400.0300.06318.62
5.4.390.0330.05718.57
5.4.380.0230.06018.80
5.4.370.0330.05018.50
5.4.360.0330.04018.84
5.4.350.0170.05718.63
5.4.340.0230.05318.59
5.4.320.0080.03712.51
5.4.310.0080.04612.50
5.4.300.0070.03412.51
5.4.290.0060.05112.50
5.4.280.0060.03812.39
5.4.270.0060.04112.40
5.4.260.0170.05318.84
5.4.250.0030.07319.03
5.4.240.0030.08318.64
5.4.230.0130.07018.79
5.4.220.0130.07319.01
5.4.210.0100.07018.75
5.4.200.0100.05318.90
5.4.190.0030.07018.64
5.4.180.0200.06019.00
5.4.170.0070.07318.73
5.4.160.0100.05318.82
5.4.150.0000.07319.12
5.4.140.0170.06316.47
5.4.130.0030.05316.47
5.4.120.0070.06716.41
5.4.110.0170.05016.71
5.4.100.0130.04016.46
5.4.90.0000.07716.60
5.4.80.0030.05716.55
5.4.70.0030.05016.36
5.4.60.0170.03716.39
5.4.50.0070.05016.35
5.4.40.0070.05016.50
5.4.30.0030.05716.38
5.4.20.0030.05316.53
5.4.10.0030.05316.33
5.4.00.0000.06715.83
5.3.290.0090.04112.80
5.3.280.0070.05714.51
5.3.270.0000.06314.68
5.3.260.0070.05314.77
5.3.250.0100.05714.77
5.3.240.0030.05314.63
5.3.230.0070.05314.62
5.3.220.0030.07714.67
5.3.210.0030.06714.65
5.3.200.0030.05014.75
5.3.190.0070.05014.40
5.3.180.0130.05714.55
5.3.170.0130.07014.55
5.3.160.0130.06714.55
5.3.150.0070.06014.55
5.3.140.0130.06714.64
5.3.130.0070.06714.63
5.3.120.0030.08014.53
5.3.110.0200.05014.64
5.3.100.0100.05714.26
5.3.90.0130.06713.93
5.3.80.0070.05014.11
5.3.70.0100.05314.20
5.3.60.0100.04714.09
5.3.50.0100.05713.79
5.3.40.0070.07314.02
5.3.30.0070.04713.88
5.3.20.0170.04013.53
5.3.10.0030.05713.73
5.3.00.0030.07313.63
5.2.170.0070.05011.10
5.2.160.0070.06711.31
5.2.150.0130.05311.23
5.2.140.0030.04311.23
5.2.130.0000.06311.09
5.2.120.0070.05711.01
5.2.110.0030.05010.94
5.2.100.0000.06011.19
5.2.90.0030.05710.93
5.2.80.0000.05711.08
5.2.70.0030.05011.18
5.2.60.0070.06011.13
5.2.50.0030.04311.11
5.2.40.0100.05010.90
5.2.30.0100.04710.81
5.2.20.0030.05310.96
5.2.10.0070.04310.83
5.2.00.0070.05010.80
5.1.60.0000.05710.03
5.1.50.0030.04310.03
5.1.40.0030.03710.03
5.1.30.0000.04310.43
5.1.20.0030.05310.36
5.1.10.0030.03310.14
5.1.00.0070.03010.11
5.0.50.0000.03310.03
5.0.40.0070.02310.03
5.0.30.0000.05710.03
5.0.20.0030.02710.03
5.0.10.0030.02710.03
5.0.00.0000.04310.03
4.4.90.0000.02710.03
4.4.80.0030.02010.03
4.4.70.0030.02010.03
4.4.60.0030.02010.03
4.4.50.0000.03310.03
4.4.40.0000.04710.03
4.4.30.0000.02710.03
4.4.20.0130.01310.03
4.4.10.0030.02010.03
4.4.00.0030.03010.03
4.3.110.0070.01710.03
4.3.100.0000.02310.03
4.3.90.0100.02310.03
4.3.80.0000.03310.03
4.3.70.0000.03010.03
4.3.60.0030.02010.03
4.3.50.0030.02710.03
4.3.40.0030.04010.03
4.3.30.0030.03010.03
4.3.20.0070.02310.03
4.3.10.0070.01710.03
4.3.00.0000.0236.84

preferences:
50.55 ms | 400 KiB | 5 Q