3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I{ function __construct(array $test); } trait T{ function __construct(array $test){ } } class Mother implements I{ use T; } class Children extends Mother{ function __construct(){ } } $children=new Children(); $mother = new Mother(array());

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.0140.00716.60
8.3.50.0080.00821.89
8.3.40.0110.00618.53
8.3.30.0100.00719.04
8.3.20.0060.00320.18
8.3.10.0050.00323.57
8.3.00.0030.00620.68
8.2.180.0110.00716.59
8.2.170.0040.01122.96
8.2.160.0100.00720.52
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.85
8.2.110.0030.00620.52
8.2.100.0000.01217.72
8.2.90.0040.00417.63
8.2.80.0080.00017.97
8.2.70.0100.00017.92
8.2.60.0080.00017.93
8.2.50.0080.00018.10
8.2.40.0080.00022.31
8.2.30.0040.00418.17
8.2.20.0000.00817.68
8.2.10.0000.00817.86
8.2.00.0040.00417.48
8.1.280.0100.00325.92
8.1.270.0030.00623.96
8.1.260.0040.00426.35
8.1.250.0140.00328.09
8.1.240.0040.00422.23
8.1.230.0140.00019.10
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0040.00717.34
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0000.00918.65
8.1.160.0000.00821.97
8.1.150.0000.00718.47
8.1.140.0000.00717.43
8.1.130.0030.00317.70
8.1.120.0040.00317.31
8.1.110.0000.00917.45
8.1.100.0040.00417.24
8.1.90.0080.00017.39
8.1.80.0000.00717.27
8.1.70.0000.00717.39
8.1.60.0060.00317.50
8.1.50.0080.00017.35
8.1.40.0040.00417.47
8.1.30.0080.00017.49
8.1.20.0080.00017.48
8.1.10.0040.00417.27
8.1.00.0000.00717.29
8.0.300.0040.00419.73
8.0.290.0060.00316.63
8.0.280.0030.00318.28
8.0.270.0040.00417.11
8.0.260.0040.00417.19
8.0.250.0070.00016.98
8.0.240.0030.00316.95
8.0.230.0040.00416.98
8.0.220.0030.00316.91
8.0.210.0030.00316.86
8.0.200.0080.00016.83
8.0.190.0000.00816.91
8.0.180.0050.00316.84
8.0.170.0070.00016.97
8.0.160.0000.00716.95
8.0.150.0000.00716.71
8.0.140.0040.00416.89
8.0.130.0000.00513.23
8.0.120.0000.00816.81
8.0.110.0040.00416.91
8.0.100.0000.00816.87
8.0.90.0000.00816.72
8.0.80.0090.00616.88
8.0.70.0040.00416.91
8.0.60.0000.00716.77
8.0.50.0040.00416.77
8.0.30.0090.01216.97
8.0.20.0120.00617.40
8.0.10.0040.00416.89
8.0.00.0020.01816.72
7.4.330.0020.00215.00
7.4.320.0000.00716.52
7.4.300.0040.00416.62
7.4.290.0050.00216.46
7.4.280.0000.00816.34
7.4.270.0000.00816.46
7.4.260.0030.00316.43
7.4.250.0040.00416.39
7.4.240.0010.00716.42
7.4.230.0040.00416.59
7.4.220.0070.01716.57
7.4.210.0040.01116.49
7.4.200.0000.00716.25
7.4.190.0070.00016.41
7.4.160.0080.00816.43
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0130.00816.46
7.4.120.0050.01216.37
7.4.110.0170.00716.20
7.4.100.0110.01116.37
7.4.90.0060.00916.43
7.4.80.0100.01019.39
7.4.70.0100.01016.42
7.4.60.0090.00916.50
7.4.50.0040.00416.34
7.4.40.0100.00616.47
7.4.30.0100.00616.50
7.4.00.0090.00514.61
7.3.330.0060.00013.13
7.3.320.0000.00613.38
7.3.310.0000.00716.32
7.3.300.0030.00316.16
7.3.290.0070.00716.32
7.3.280.0110.00816.27
7.3.270.0160.00317.40
7.3.260.0120.00816.62
7.3.250.0070.00916.34
7.3.240.0030.02116.32
7.3.230.0110.00716.55
7.3.210.0130.00316.22
7.3.200.0060.00919.39
7.3.190.0220.00016.40
7.3.180.0100.00616.18
7.3.170.0080.00816.46
7.3.160.0060.01516.30
7.3.120.0080.00714.76
7.3.110.0040.01214.66
7.3.100.0090.00814.88
7.3.90.0050.00714.73
7.3.80.0030.01014.61
7.3.70.0060.00614.63
7.3.60.0050.00914.78
7.3.50.0050.00814.73
7.3.40.0090.00514.59
7.3.30.0070.00314.72
7.3.20.0020.01116.56
7.3.10.0080.00816.39
7.3.00.0050.01016.45
7.2.330.0040.01416.47
7.2.320.0070.01016.32
7.2.310.0120.00616.26
7.2.300.0170.00016.70
7.2.290.0100.00716.61
7.2.250.0050.01114.79
7.2.240.0110.00814.83
7.2.230.0030.01414.74
7.2.220.0070.00814.93
7.2.210.0110.00214.96
7.2.200.0060.01014.82
7.2.190.0020.01114.65
7.2.180.0020.01014.96
7.2.170.0060.00814.79
7.2.130.0170.00316.36
7.2.120.0070.01316.44
7.2.110.0040.00816.28
7.2.100.0090.00316.46
7.2.90.0180.00316.65
7.2.80.0090.00616.57
7.2.70.0080.00816.55
7.2.60.0080.00716.59
7.2.50.0130.00716.57
7.2.40.0140.00316.42
7.2.30.0110.00316.44
7.2.20.0100.00715.98
7.2.10.0100.00716.00
7.2.00.0030.01017.98
7.1.330.0080.00515.74
7.1.320.0060.00315.72
7.1.310.0020.00815.65
7.1.300.0040.00815.57
7.1.290.0020.01315.61
7.1.280.0070.00515.67
7.1.270.0050.00515.56
7.1.260.0030.01215.49
7.1.250.0070.00715.03
7.1.200.0060.00615.66
7.1.100.0030.01318.15
7.1.70.0000.00717.02
7.1.60.0100.01319.70
7.1.50.0040.01916.78
7.1.00.0000.07722.30
7.0.200.0040.00416.28
7.0.140.0100.06722.07
7.0.70.0030.06321.49
7.0.60.0000.06321.55
7.0.50.0100.07021.87
7.0.40.0030.08020.00
7.0.30.0030.08319.90
7.0.20.0030.05019.86
7.0.10.0030.08019.86
7.0.00.0130.07719.87
5.6.280.0100.06721.00
5.6.220.0030.07720.40
5.6.210.0070.07020.55
5.6.200.0100.06020.90
5.6.190.0030.07720.92
5.6.180.0030.07720.87
5.6.170.0000.08320.91
5.6.160.0070.07720.94
5.6.150.0100.08020.94
5.6.140.0000.08720.91
5.6.130.0070.08020.82
5.6.120.0000.09020.85
5.6.110.0070.08020.90
5.6.100.0030.08720.95
5.6.90.0030.07720.94
5.6.80.0100.07320.34
5.6.70.0070.07720.31
5.6.60.0030.06020.21
5.6.50.0030.08020.37
5.6.40.0030.07020.35
5.6.30.0030.08020.27
5.6.20.0170.06720.25
5.6.10.0000.08320.18
5.6.00.0030.05020.33
5.5.360.0070.06720.29
5.5.350.0000.05020.18
5.5.340.0030.08320.71
5.5.330.0100.07720.59
5.5.320.0070.08020.81
5.5.310.0100.08020.76
5.5.300.0100.07720.70
5.5.290.0100.08020.64
5.5.280.0030.08720.75
5.5.270.0170.06720.70
5.5.260.0000.07020.78
5.5.250.0030.09020.54
5.5.240.0000.09020.14
5.5.230.0030.07320.10
5.5.220.0000.07720.08
5.5.210.0070.07720.15
5.5.200.0070.07720.01
5.5.190.0100.07020.04
5.5.180.0030.04720.11
5.5.160.0000.07020.09
5.5.150.0000.06020.01
5.5.140.0000.08019.93
5.5.130.0070.06020.12
5.5.120.0100.06020.07
5.5.110.0030.06720.01
5.5.100.0070.07319.98
5.5.90.0070.04319.99
5.5.80.0070.07719.99
5.5.70.0030.07319.85
5.5.60.0000.07719.94
5.5.50.0070.07019.81
5.5.40.0030.06719.84
5.5.30.0030.06319.89
5.5.20.0030.07019.96
5.5.10.0070.07319.96
5.5.00.0070.08019.91
5.4.450.0030.06019.31
5.4.440.0170.06019.31
5.4.430.0000.08319.20
5.4.420.0070.07319.06
5.4.410.0130.06719.24
5.4.400.0000.07718.91
5.4.390.0030.07318.77
5.4.380.0070.07018.87
5.4.370.0030.06718.99
5.4.360.0030.06718.98
5.4.350.0000.08019.04
5.4.340.0070.07318.94
5.4.320.0030.08018.94
5.4.310.0030.07318.88
5.4.300.0030.07318.74
5.4.290.0030.06318.90
5.4.280.0070.07318.82
5.4.270.0100.07018.98
5.4.260.0100.06018.76
5.4.250.0000.06319.04
5.4.240.0030.07019.06
5.4.230.0000.05718.84
5.4.220.0070.06318.98
5.4.210.0170.06718.95
5.4.200.0100.08018.97
5.4.190.0070.04718.87
5.4.180.0130.06718.99
5.4.170.0070.07019.03
5.4.160.0000.07318.69
5.4.150.0030.07318.96
5.4.140.0030.05016.44
5.4.130.0030.05716.45
5.4.120.0000.06316.43
5.4.110.0070.06016.50
5.4.100.0100.06716.48
5.4.90.0000.05716.52
5.4.80.0000.07316.46
5.4.70.0100.05716.46
5.4.60.0100.03016.30
5.4.50.0030.07716.43
5.4.40.0030.06716.38
5.4.30.0070.05716.34
5.4.20.0070.06316.24
5.4.10.0000.06316.31
5.4.00.0000.05315.83
5.3.290.0000.05714.62
5.3.280.0070.07714.52
5.3.270.0070.05714.53
5.3.260.0030.07714.53
5.3.250.0030.07314.72
5.3.240.0100.06314.60
5.3.230.0130.06014.70
5.3.220.0070.06714.46
5.3.210.0100.06714.58
5.3.200.0070.05014.52
5.3.190.0030.07014.63
5.3.180.0030.06314.70
5.3.170.0000.05314.50
5.3.160.0030.06314.53
5.3.150.0130.06314.50
5.3.140.0000.04314.68
5.3.130.0030.07714.60
5.3.120.0030.07714.50
5.3.110.0000.04014.51
5.3.100.0000.07314.18
5.3.90.0030.07313.95
5.3.80.0070.04313.92
5.3.70.0000.05314.12
5.3.60.0070.07313.89
5.3.50.0030.07314.07
5.3.40.0070.07013.95
5.3.30.0000.06014.00
5.3.20.0070.05313.59
5.3.10.0070.06713.56
5.3.00.0100.07013.78
5.2.170.0030.05011.19
5.2.160.0030.06011.04
5.2.150.0070.05311.20
5.2.140.0000.05311.04
5.2.130.0100.04310.97
5.2.120.0070.05311.15
5.2.110.0030.05311.02
5.2.100.0070.05310.96
5.2.90.0070.03710.96
5.2.80.0030.06711.16
5.2.70.0000.06011.00
5.2.60.0030.05310.94
5.2.50.0030.06011.00
5.2.40.0000.06311.13
5.2.30.0070.05310.96
5.2.20.0070.03710.99
5.2.10.0070.04710.89
5.2.00.0030.05010.57
5.1.60.0030.06010.50
5.1.50.0030.04010.50
5.1.40.0030.04310.50
5.1.30.0030.04010.50
5.1.20.0000.06310.50
5.1.10.0030.05310.50
5.1.00.0000.05710.50
5.0.50.0100.04310.50
5.0.40.0070.04010.50
5.0.30.0030.06010.50
5.0.20.0030.03710.50
5.0.10.0000.04010.50
5.0.00.0030.06010.50
4.4.90.0000.03010.50
4.4.80.0000.03310.50
4.4.70.0000.03010.50
4.4.60.0030.03310.50
4.4.50.0000.03310.50
4.4.40.0070.03710.50
4.4.30.0030.01710.50
4.4.20.0030.03010.50
4.4.10.0000.02310.50
4.4.00.0030.04710.50
4.3.110.0070.02310.50
4.3.100.0030.03310.50
4.3.90.0000.03310.50
4.3.80.0030.04310.50
4.3.70.0000.02310.50
4.3.60.0030.03010.50
4.3.50.0030.03310.50
4.3.40.0000.05010.50
4.3.30.0000.04010.50
4.3.20.0030.01710.50
4.3.10.0000.03310.50
4.3.00.0070.03010.50

preferences:
45.72 ms | 401 KiB | 5 Q