3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); 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.60.0150.00616.38
8.3.50.0120.00617.45
8.3.40.0030.01618.71
8.3.30.0110.00418.72
8.3.20.0050.00318.65
8.3.10.0070.00720.53
8.3.00.0080.00019.26
8.2.180.0100.00316.38
8.2.170.0150.00022.96
8.2.160.0120.00320.74
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0030.00626.16
8.2.120.0050.00320.48
8.2.110.0110.00020.94
8.2.100.0130.00317.44
8.2.90.0030.00619.35
8.2.80.0050.00319.38
8.2.70.0050.00317.50
8.2.60.0000.01117.78
8.2.50.0080.00018.07
8.2.40.0040.00418.16
8.2.30.0040.00417.87
8.2.20.0040.00417.52
8.2.10.0030.00517.53
8.2.00.0040.00417.54
8.1.280.0140.00025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00620.58
8.1.230.0030.00920.97
8.1.220.0000.00817.74
8.1.210.0040.00718.78
8.1.200.0030.00617.10
8.1.190.0040.00417.30
8.1.180.0080.00018.10
8.1.170.0000.00718.84
8.1.160.0070.00018.74
8.1.150.0000.00918.38
8.1.140.0000.00717.20
8.1.130.0000.00717.76
8.1.120.0090.00017.31
8.1.110.0000.00717.20
8.1.100.0040.00417.34
8.1.90.0070.00017.39
8.1.80.0070.00017.37
8.1.70.0040.00417.20
8.1.60.0040.00417.48
8.1.50.0060.00317.39
8.1.40.0000.00717.39
8.1.30.0000.00717.56
8.1.20.0000.00717.56
8.1.10.0030.00617.48
8.1.00.0040.00417.39
8.0.300.0070.00019.92
8.0.290.0070.00016.63
8.0.280.0030.00318.44
8.0.270.0040.00417.19
8.0.260.0070.00016.72
8.0.250.0060.00316.94
8.0.240.0070.00016.92
8.0.230.0020.00516.86
8.0.220.0050.00216.70
8.0.210.0000.00616.76
8.0.200.0000.00716.93
8.0.190.0090.00016.82
8.0.180.0000.00816.88
8.0.170.0000.00916.82
8.0.160.0040.00416.90
8.0.150.0000.00816.80
8.0.140.0030.00516.71
8.0.130.0030.00313.29
8.0.120.0040.00416.70
8.0.110.0000.00716.72
8.0.100.0000.00716.79
8.0.90.0070.00016.66
8.0.80.0040.01116.86
8.0.70.0050.00216.62
8.0.60.0000.00716.64
8.0.50.0000.00816.77
8.0.30.0100.00917.08
8.0.20.0170.00316.96
8.0.10.0080.00016.89
8.0.00.0070.01116.83
7.4.330.0000.00512.84
7.4.320.0000.00816.39
7.4.300.0060.00016.40
7.4.290.0060.00016.52
7.4.280.0000.01116.41
7.4.270.0030.00316.56
7.4.260.0030.00313.10
7.4.250.0040.00416.46
7.4.240.0030.00316.44
7.4.230.0030.00316.48
7.4.220.0100.00716.47
7.4.210.0070.01016.52
7.4.200.0030.00316.32
7.4.190.0030.00516.59
7.4.160.0120.00416.43
7.4.150.0110.00616.46
7.4.140.0130.00616.38
7.4.130.0060.01416.47
7.4.120.0110.00716.50
7.4.110.0070.01016.39
7.4.100.0170.00316.60
7.4.90.0170.00316.30
7.4.80.0080.00916.43
7.4.70.0160.00716.32
7.4.60.0060.00916.44
7.4.50.0080.00416.14
7.4.40.0080.01116.35
7.4.30.0100.00616.41
7.4.00.0040.01115.00
7.3.330.0030.00313.03
7.3.320.0040.00413.25
7.3.310.0070.00016.30
7.3.300.0000.00616.13
7.3.290.0060.01316.25
7.3.280.0070.00916.21
7.3.270.0110.00616.39
7.3.260.0120.00316.41
7.3.250.0160.00516.23
7.3.240.0120.00716.53
7.3.230.0070.01016.42
7.3.210.0100.00616.30
7.3.200.0060.01619.39
7.3.190.0080.00816.22
7.3.180.0090.00616.15
7.3.170.0090.00616.43
7.3.160.0030.01616.40
7.3.120.0070.00714.69
7.3.00.0120.00416.40
7.2.330.0130.00916.67
7.2.320.0060.01616.32
7.2.310.0100.01216.26
7.2.300.0030.01316.35
7.2.290.0130.00316.62
7.2.130.0030.00716.95
7.2.120.0080.00816.90
7.2.110.0030.00816.60
7.2.100.0060.00616.66
7.2.90.0060.00616.90
7.2.80.0040.01116.77
7.2.70.0000.00916.88
7.2.60.0070.00716.42
7.2.50.0030.00916.82
7.2.40.0040.00716.68
7.2.30.0030.01216.92
7.2.20.0100.00016.79
7.2.10.0060.00816.74
7.2.00.0050.00717.97
7.1.250.0060.00615.71
7.1.240.0060.00315.63
7.1.230.0090.00315.33
7.1.220.0000.01415.66
7.1.210.0090.00315.45
7.1.200.0070.00015.54
7.1.190.0070.00715.51
7.1.180.0070.00715.75
7.1.170.0060.00315.77
7.1.160.0110.00015.70
7.1.150.0080.00315.55
7.1.140.0060.00315.70
7.1.130.0030.00615.48
7.1.120.0000.00815.58
7.1.110.0080.00315.62
7.1.100.0060.00916.74
7.1.90.0040.01115.48
7.1.80.0070.00715.72
7.1.70.0070.00216.29
7.1.60.0080.01117.62
7.1.50.0030.00816.25
7.1.40.0060.00915.41
7.1.30.0120.00315.50
7.1.20.0090.00015.48
7.1.10.0030.00615.46
7.1.00.0030.02019.03
7.0.330.0000.00815.23
7.0.320.0000.01015.08
7.0.310.0000.00815.13
7.0.300.0080.00015.27
7.0.290.0050.00215.34
7.0.280.0000.01215.25
7.0.270.0090.00015.51
7.0.260.0000.00815.36
7.0.250.0090.00315.23
7.0.240.0070.00315.13
7.0.230.0030.01015.39
7.0.220.0000.01115.42
7.0.210.0000.00815.38
7.0.200.0050.00615.86
7.0.190.0030.01015.22
7.0.180.0030.00515.02
7.0.170.0000.01115.23
7.0.160.0040.00415.06
7.0.150.0060.00915.09
7.0.140.0030.04218.63
7.0.130.0040.00815.16
7.0.120.0000.04218.80
7.0.110.0000.01215.23
7.0.100.0060.00915.07
7.0.90.0030.01015.37
7.0.80.0060.00615.28
7.0.70.0080.00015.16
7.0.60.0070.04717.64
7.0.50.0060.04516.61
7.0.40.0050.04315.56
7.0.30.0030.03415.49
7.0.20.0020.05015.51
7.0.10.0070.04215.45
7.0.00.0060.04515.58
5.6.380.0060.00614.48
5.6.370.0060.00314.39
5.6.360.0040.00714.38
5.6.350.0030.01014.22
5.6.340.0030.01214.18
5.6.330.0030.01014.25
5.6.320.0060.00614.33
5.6.310.0030.00714.05
5.6.300.0040.00714.10
5.6.290.0040.00814.07
5.6.280.0000.01714.50
5.6.270.0080.00514.09
5.6.260.0030.00614.37
5.6.250.0040.01114.31
5.6.240.0040.00814.13
5.6.230.0110.00314.20
5.6.220.0040.00414.23
5.6.210.0090.03017.40
5.6.200.0070.04816.05
5.6.190.0100.04216.10
5.6.180.0060.02816.20
5.6.170.0050.02516.21
5.6.160.0050.02916.26
5.6.150.0020.04716.16
5.6.140.0070.04516.22
5.6.130.0080.04116.16
5.6.120.0020.04516.33
5.6.110.0100.04216.10
5.6.100.0100.04116.24
5.6.90.0030.04616.10
5.6.80.0070.02715.84
5.6.70.0070.04215.81
5.6.60.0020.04816.01
5.6.50.0090.02515.72
5.6.40.0080.02615.86
5.6.30.0120.03815.99
5.6.20.0060.02715.87
5.6.10.0030.03515.69
5.6.00.0030.04515.71
5.5.380.0030.00511.00
5.5.370.0070.00311.00
5.5.360.0000.00911.18
5.5.350.0160.03315.71
5.5.340.0060.04014.61
5.5.330.0050.03814.53
5.5.320.0050.04414.38
5.5.310.0120.03814.50
5.5.300.0080.02814.44
5.5.290.0020.03514.43
5.5.280.0080.03914.48
5.5.270.0050.03814.35
5.5.260.0080.04314.43
5.5.250.0080.03214.42
5.5.240.0060.02614.27
5.5.230.0090.03214.14
5.5.220.0050.04214.15
5.5.210.0020.03514.11
5.5.200.0050.03114.04
5.5.190.0040.04014.03
5.5.180.0050.04414.07
5.5.170.0060.00611.03
5.5.160.0080.04013.94
5.5.150.0020.02914.05
5.5.140.0100.03713.97
5.5.130.0080.02314.23
5.5.120.0100.03814.02
5.5.110.0080.02014.16
5.5.100.0030.04214.04
5.5.90.0080.03614.07
5.5.80.0060.04013.98
5.5.70.0020.04314.16
5.5.60.0050.04114.10
5.5.50.0040.02513.96
5.5.40.0080.01514.12
5.5.30.0000.02413.93
5.5.20.0030.02614.05
5.5.10.0090.01913.99
5.5.00.0090.01514.20
5.4.450.0060.04015.19
5.4.440.0060.03714.98
5.4.430.0030.04215.11
5.4.420.0030.04115.01
5.4.410.0070.03415.19
5.4.400.0080.03414.93
5.4.390.0060.03814.98
5.4.380.0070.03314.81
5.4.370.0050.03314.78
5.4.360.0060.02414.82
5.4.350.0210.03314.92
5.4.340.0090.03014.92
5.4.330.0090.00010.89
5.4.320.0070.04314.98
5.4.310.0060.04315.01
5.4.300.0110.02215.10
5.4.290.0030.03215.04
5.4.280.0070.02315.03
5.4.270.0050.02214.92
5.4.260.0070.03515.00
5.4.250.0110.03714.91
5.4.240.0050.03614.82
5.4.230.0070.02314.92
5.4.220.0030.02714.96
5.4.210.0070.01814.92
5.4.200.0050.02015.03
5.4.190.0060.01815.07
5.4.180.0030.02114.91
5.4.170.0020.02215.00
5.4.160.0100.02014.86
5.4.150.0030.02114.95
5.4.140.0020.02213.60
5.4.130.0020.02213.70
5.4.120.0020.02013.64
5.4.110.0000.02413.66
5.4.100.0030.01913.54
5.4.90.0030.01813.63
5.4.80.0030.02113.70
5.4.70.0050.02013.78
5.4.60.0050.01713.48
5.4.50.0020.02013.81
5.4.40.0010.02013.59
5.4.30.0050.02013.49
5.4.20.0060.01813.56
5.4.10.0080.01513.80
5.4.00.0050.01713.46
5.3.290.0080.03612.53
5.3.280.0030.02712.44
5.3.270.0030.02312.53
5.3.260.0040.02012.57
5.3.250.0080.01912.59
5.3.240.0040.02212.52
5.3.230.0050.01912.55
5.3.220.0060.02012.51
5.3.210.0060.01812.39
5.3.200.0080.01512.39
5.3.190.0020.02212.51
5.3.180.0030.02812.47
5.3.170.0030.02012.60
5.3.160.0060.01612.60
5.3.150.0050.02012.54
5.3.140.0020.02312.51
5.3.130.0050.02212.57
5.3.120.0050.01912.56
5.3.110.0030.02012.49
5.3.100.0050.01712.26
5.3.90.0020.02012.24
5.3.80.0030.02212.21
5.3.70.0020.02212.32
5.3.60.0030.01812.05
5.3.50.0020.02212.20
5.3.40.0070.01512.20
5.3.30.0030.02012.21
5.3.20.0010.02112.15
5.3.10.0000.02211.94
5.3.00.0030.02111.95
5.2.170.0000.01810.56
5.2.160.0010.01810.55
5.2.150.0050.01310.57
5.2.140.0020.01810.58
5.2.130.0050.01510.56
5.2.120.0000.01810.49
5.2.110.0020.02310.49
5.2.100.0020.02010.56
5.2.90.0050.03310.56
5.2.80.0050.03310.55
5.2.70.0050.03310.48
5.2.60.0050.03210.55
5.2.50.0030.03110.44
5.2.40.0070.02010.52
5.2.30.0030.02910.50
5.2.20.0020.02710.49
5.2.10.0030.03310.42
5.2.00.0000.03710.27
5.1.60.0040.0289.97
5.1.50.0040.02510.03
5.1.40.0020.0289.94
5.1.30.0030.03110.18
5.1.20.0050.02810.21
5.1.10.0000.03310.06
5.1.00.0050.02410.02
5.0.50.0000.0249.29
5.0.40.0050.0149.19
5.0.30.0020.0309.13
5.0.20.0020.0239.06
5.0.10.0050.0129.11
5.0.00.0000.0279.09
4.4.90.0030.0188.72
4.4.80.0030.0188.72
4.4.70.0030.0178.72
4.4.60.0020.0188.72
4.4.50.0030.0198.72
4.4.40.0040.0158.72
4.4.30.0030.0188.72
4.4.20.0040.0108.72
4.4.10.0000.0228.72
4.4.00.0000.0328.72
4.3.110.0020.0158.72
4.3.100.0030.0198.72
4.3.90.0080.0108.72
4.3.80.0040.0158.72
4.3.70.0070.0128.72
4.3.60.0020.0138.72
4.3.50.0020.0118.72
4.3.40.0020.0278.72
4.3.30.0000.0198.72
4.3.20.0000.0128.72
4.3.10.0000.0108.72
4.3.00.0020.0118.72

preferences:
50.99 ms | 401 KiB | 5 Q