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();

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.0140.00018.70
8.3.30.0110.00418.68
8.3.20.0000.00718.82
8.3.10.0080.00020.97
8.3.00.0060.00321.91
8.2.170.0070.00722.96
8.2.160.0130.00020.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0040.00421.01
8.2.110.0080.00320.56
8.2.100.0060.00617.78
8.2.90.0000.00817.75
8.2.80.0080.00018.04
8.2.70.0050.00317.92
8.2.60.0060.00317.93
8.2.50.0040.00418.10
8.2.40.0040.00422.13
8.2.30.0070.00019.54
8.2.20.0080.00017.59
8.2.10.0040.00417.57
8.2.00.0080.00017.61
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0220.00020.70
8.1.230.0070.00422.20
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00817.09
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.61
8.1.160.0050.00318.70
8.1.150.0040.00418.61
8.1.140.0070.00017.25
8.1.130.0040.00417.76
8.1.120.0030.00517.43
8.1.110.0050.00217.24
8.1.100.0030.00517.37
8.1.90.0070.00017.28
8.1.80.0040.00417.34
8.1.70.0000.00817.41
8.1.60.0090.00017.45
8.1.50.0070.00017.34
8.1.40.0080.00017.36
8.1.30.0040.00417.45
8.1.20.0040.00417.50
8.1.10.0000.00717.28
8.1.00.0040.00417.29
8.0.300.0070.00019.95
8.0.290.0060.00316.75
8.0.280.0000.00718.25
8.0.270.0000.00817.24
8.0.260.0050.00316.72
8.0.250.0070.00016.93
8.0.240.0030.00716.93
8.0.230.0070.00016.93
8.0.220.0030.00316.89
8.0.210.0030.00316.87
8.0.200.0030.00316.88
8.0.190.0030.00316.99
8.0.180.0060.00316.88
8.0.170.0000.00716.96
8.0.160.0000.00916.88
8.0.150.0070.00016.80
8.0.140.0040.00416.75
8.0.130.0030.00313.32
8.0.120.0070.00016.81
8.0.110.0040.00416.90
8.0.100.0040.00416.75
8.0.90.0040.00416.88
8.0.80.0060.01316.93
8.0.70.0000.00716.93
8.0.60.0000.00716.87
8.0.50.0040.00416.84
8.0.30.0130.00617.03
8.0.20.0070.01117.40
8.0.10.0000.00716.83
8.0.00.0070.01016.85
7.4.330.0050.00016.84
7.4.320.0060.00016.30
7.4.300.0000.00716.43
7.4.290.0030.00316.45
7.4.280.0000.00916.33
7.4.270.0070.00016.51
7.4.260.0050.00013.22
7.4.250.0040.00416.41
7.4.240.0070.00016.54
7.4.230.0040.00416.46
7.4.220.0090.00616.47
7.4.210.0060.00816.56
7.4.200.0040.00416.54
7.4.190.0000.00716.42
7.4.160.0150.00916.61
7.4.150.0130.00617.40
7.4.140.0120.00817.86
7.4.130.0110.00716.46
7.4.120.0060.01016.40
7.4.110.0140.00716.40
7.4.100.0170.00416.41
7.4.90.0130.01316.50
7.4.80.0090.00619.39
7.4.70.0060.01616.56
7.4.60.0120.00616.35
7.4.50.0000.00816.18
7.4.40.0080.00422.77
7.4.30.0140.00316.36
7.4.10.0070.01015.02
7.4.00.0070.00914.71
7.3.330.0000.00513.33
7.3.320.0000.00613.25
7.3.310.0080.00016.33
7.3.300.0030.00316.16
7.3.290.0080.00716.27
7.3.280.0050.01116.30
7.3.270.0110.00717.40
7.3.260.0110.00618.24
7.3.250.0070.01516.36
7.3.240.0070.01016.44
7.3.230.0160.00716.39
7.3.210.0070.01016.40
7.3.200.0030.01319.39
7.3.190.0060.01116.25
7.3.180.0100.00716.59
7.3.170.0090.00616.46
7.3.160.0110.00716.28
7.3.130.0110.00714.98
7.3.120.0030.01214.87
7.3.110.0080.01214.80
7.3.100.0070.00714.90
7.3.90.0080.00414.73
7.3.80.0100.00314.95
7.3.70.0060.00914.66
7.3.60.0070.01114.72
7.3.50.0030.01014.57
7.3.40.0090.00614.79
7.3.30.0060.00914.70
7.3.20.0060.01016.35
7.3.10.0090.00616.48
7.3.00.0030.00716.55
7.2.330.0030.01516.28
7.2.320.0060.01116.30
7.2.310.0170.00016.63
7.2.300.0060.01516.51
7.2.290.0030.01316.63
7.2.260.0040.01414.53
7.2.250.0090.00914.57
7.2.240.0000.01814.63
7.2.230.0060.01315.05
7.2.220.0030.01614.69
7.2.210.0100.00715.03
7.2.200.0100.00714.89
7.2.190.0030.01514.82
7.2.180.0060.00314.80
7.2.170.0000.01614.70
7.2.160.0110.00414.77
7.2.150.0120.00316.61
7.2.140.0030.01216.91
7.2.130.0070.00316.70
7.2.120.0080.00816.90
7.2.110.0030.01616.80
7.2.100.0040.01416.75
7.2.90.0150.00016.47
7.2.80.0090.00616.50
7.2.70.0040.01216.48
7.2.60.0070.00916.86
7.2.50.0090.00916.98
7.2.40.0090.00616.78
7.2.30.0060.00916.73
7.2.20.0000.01416.54
7.2.10.0070.00716.65
7.2.00.0030.00717.90
7.1.330.0000.01415.39
7.1.320.0060.01015.50
7.1.310.0100.00315.26
7.1.300.0040.01015.45
7.1.290.0060.00615.60
7.1.280.0040.01115.41
7.1.270.0030.01215.60
7.1.260.0040.00715.48
7.1.250.0000.01315.79
7.1.240.0000.01615.30
7.1.230.0070.01115.74
7.1.220.0060.01215.18
7.1.210.0130.00315.43
7.1.200.0070.00615.34
7.1.190.0060.01015.76
7.1.180.0040.01115.09
7.1.170.0030.01015.57
7.1.160.0030.01015.47
7.1.150.0120.00015.53
7.1.140.0000.01515.38
7.1.130.0090.00015.73
7.1.120.0000.01315.75
7.1.110.0090.00415.71
7.1.100.0030.00816.52
7.1.90.0090.00015.37
7.1.80.0030.00815.78
7.1.70.0070.00516.27
7.1.60.0070.00817.33
7.1.50.0070.01016.27
7.1.40.0030.00915.48
7.1.30.0100.00615.58
7.1.20.0080.00615.60
7.1.10.0070.00715.55
7.1.00.0050.02518.98
7.0.330.0060.00615.20
7.0.320.0030.00515.20
7.0.310.0070.00715.19
7.0.300.0040.01115.43
7.0.290.0040.00715.04
7.0.280.0060.01215.23
7.0.270.0070.00415.06
7.0.260.0060.01014.83
7.0.250.0030.01015.40
7.0.240.0030.00915.35
7.0.230.0000.01315.30
7.0.220.0040.01115.24
7.0.210.0100.00315.23
7.0.200.0000.01015.97
7.0.190.0110.00415.39
7.0.180.0100.00715.36
7.0.170.0050.01015.26
7.0.160.0040.01215.48
7.0.150.0120.00515.04
7.0.140.0040.04018.55
7.0.130.0070.01015.46
7.0.120.0000.01215.38
7.0.110.0070.02417.73
7.0.100.0080.02317.50
7.0.90.0120.02717.56
7.0.80.0100.04617.68
7.0.70.0080.03917.63
7.0.60.0080.04517.62
7.0.50.0080.04217.59
7.0.40.0050.03416.43
7.0.30.0060.03016.58
7.0.20.0060.03816.59
7.0.10.0080.03516.64
7.0.00.0100.04016.42
5.6.400.0100.00314.38
5.6.390.0030.01614.45
5.6.380.0060.00314.45
5.6.370.0070.00414.24
5.6.360.0030.01014.06
5.6.350.0030.00614.39
5.6.340.0040.01114.62
5.6.330.0030.00914.13
5.6.320.0070.00714.23
5.6.310.0080.00614.24
5.6.300.0060.00914.50
5.6.290.0100.00313.95
5.6.280.0010.03917.52
5.6.270.0130.00313.91
5.6.260.0040.02717.40
5.6.250.0070.02217.38
5.6.240.0050.03917.40
5.6.230.0070.03017.42
5.6.220.0090.04117.42
5.6.210.0040.04417.58
5.6.200.0080.04017.51
5.6.190.0070.04517.37
5.6.180.0050.04717.31
5.6.170.0080.04317.50
5.6.160.0080.03717.30
5.6.150.0100.03717.55
5.6.140.0090.03117.58
5.6.130.0050.04617.53
5.6.120.0070.04217.36
5.6.110.0070.03517.42
5.6.100.0050.03017.52
5.6.90.0090.04317.44
5.6.80.0120.03517.15
5.6.70.0100.03817.06
5.6.60.0070.04016.79
5.6.50.0100.04317.05
5.6.40.0050.04416.93
5.6.30.0100.03416.92
5.6.20.0070.03816.86
5.6.10.0050.04317.07
5.6.00.0050.04617.13
5.5.380.0050.04517.45
5.5.370.0060.04317.40
5.5.360.0050.02917.27
5.5.350.0080.04017.44
5.5.340.0140.03717.54
5.5.330.0060.02217.57
5.5.320.0170.03517.70
5.5.310.0020.04917.55
5.5.300.0140.04017.52
5.5.290.0090.03817.50
5.5.280.0050.04817.47
5.5.270.0070.04417.61
5.5.260.0100.03917.63
5.5.250.0070.04917.21
5.5.240.0110.03517.17
5.5.230.0070.04117.10
5.5.220.0130.04017.22
5.5.210.0100.04217.29
5.5.200.0120.04017.14
5.5.190.0070.04417.20
5.5.180.0080.04117.21
5.5.170.0040.00814.02
5.5.160.0050.04416.85
5.5.150.0000.04416.96
5.5.140.0070.04317.12
5.5.130.0080.04217.05
5.5.120.0090.03817.27
5.5.110.0050.04616.96
5.5.100.0080.03417.09
5.5.90.0080.03817.26
5.5.80.0070.03717.13
5.5.70.0070.03717.06
5.5.60.0080.02917.12
5.5.50.0110.04917.05
5.5.40.0100.03817.21
5.5.30.0070.04317.12
5.5.20.0020.02917.25
5.5.10.0070.03217.09
5.5.00.0070.04517.10
5.4.450.0030.04015.24
5.4.440.0020.03015.04
5.4.430.0100.02315.05
5.4.420.0030.03514.97
5.4.410.0040.04315.08
5.4.400.0050.04315.04
5.4.390.0040.04314.98
5.4.380.0080.01714.83
5.4.370.0050.04214.92
5.4.360.0020.04014.96
5.4.350.0020.04514.85
5.4.340.0040.02814.82
5.4.330.0070.00310.99
5.4.320.0030.04414.85
5.4.310.0030.02614.88
5.4.300.0070.04015.10
5.4.290.0100.03714.83
5.4.280.0080.02814.80
5.4.270.0080.02814.98
5.4.260.0080.03615.01
5.4.250.0120.03914.89
5.4.240.0120.03814.89
5.4.230.0020.02914.82
5.4.220.0030.03814.99
5.4.210.0050.03915.02
5.4.200.0050.03414.98
5.4.190.0080.02815.11
5.4.180.0080.03515.06
5.4.170.0070.03215.13
5.4.160.0090.02015.06
5.4.150.0070.02714.91
5.4.140.0090.03513.71
5.4.130.0080.03213.86
5.4.120.0060.02513.79
5.4.110.0110.03013.75
5.4.100.0100.03513.77
5.4.90.0060.04113.80
5.4.80.0020.04213.73
5.4.70.0080.03513.81
5.4.60.0060.03913.80
5.4.50.0050.03413.62
5.4.40.0070.04813.80
5.4.30.0020.02513.84
5.4.20.0050.03813.68
5.4.10.0030.02513.49
5.4.00.0030.02513.48
5.3.290.0080.03212.48
5.3.280.0080.03312.35
5.3.270.0060.04112.26
5.3.260.0090.02012.47
5.3.250.0070.03912.55
5.3.240.0070.02012.43
5.3.230.0030.04112.29
5.3.220.0040.03412.39
5.3.210.0030.04112.41
5.3.200.0050.04212.43
5.3.190.0050.03812.46
5.3.180.0070.03712.47
5.3.170.0020.04512.56
5.3.160.0030.02712.50
5.3.150.0030.02712.57
5.3.140.0030.03812.47
5.3.130.0110.03512.27
5.3.120.0050.03812.48
5.3.110.0030.04012.55
5.3.100.0070.04112.02
5.3.90.0050.02212.22
5.3.80.0040.02512.03
5.3.70.0030.02312.29
5.3.60.0060.02912.25
5.3.50.0090.03612.09
5.3.40.0070.03812.11
5.3.30.0050.03712.08
5.3.20.0030.03011.89
5.3.10.0070.03711.71
5.3.00.0050.03811.91
5.2.170.0000.05012.31
5.2.160.0100.05312.31
5.2.150.0070.06312.31
5.2.140.0100.06012.31
5.2.130.0070.06012.31
5.2.120.0100.06012.31
5.2.110.0100.06012.31
5.2.100.0030.06012.31
5.2.90.0070.05312.31
5.2.80.0030.06312.31
5.2.70.0030.05312.31
5.2.60.0030.05012.31
5.2.50.0070.06012.31
5.2.40.0100.05712.31
5.2.30.0000.04312.31
5.2.20.0030.06312.31
5.2.10.0030.04712.31
5.2.00.0100.05312.31
5.1.60.0070.05312.31
5.1.50.0030.04712.31
5.1.40.0030.05312.31
5.1.30.0070.05312.31
5.1.20.0030.03712.31
5.1.10.0000.05712.31
5.1.00.0030.04012.31
5.0.50.0000.04712.31
5.0.40.0000.05012.31
5.0.30.0030.03712.31
5.0.20.0030.04312.31
5.0.10.0070.04012.31
5.0.00.0070.05712.31
4.4.90.0030.03712.31
4.4.80.0000.03712.31
4.4.70.0100.01312.31
4.4.60.0030.03312.31
4.4.50.0030.03312.31
4.4.40.0030.05312.31
4.4.30.0000.03712.31
4.4.20.0000.04012.31
4.4.10.0100.03012.31
4.4.00.0030.05312.31
4.3.110.0100.02712.31
4.3.100.0000.03712.31
4.3.90.0030.02012.31
4.3.80.0000.05712.31
4.3.70.0000.03712.31
4.3.60.0030.03012.31
4.3.50.0000.04012.31
4.3.40.0000.05312.31
4.3.30.0000.03712.31
4.3.20.0000.02012.31
4.3.10.0030.03312.31
4.3.00.0000.03712.31

preferences:
60.32 ms | 400 KiB | 5 Q