3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TestTrait { public function __construct() { echo "TestTrait::__construct"; } } class TestClass { use TestTrait; public function __constructe($a) { echo "TestClass::__construct"; } } new TestClass('');

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.70.0100.00616.58
8.3.60.0000.01516.61
8.3.50.0090.00921.98
8.3.40.0150.00318.70
8.3.30.0120.00318.83
8.3.20.0040.00420.18
8.3.10.0040.00423.53
8.3.00.0070.00417.50
8.2.180.0150.00318.29
8.2.170.0030.01322.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0070.00726.16
8.2.120.0070.00022.11
8.2.110.0090.00022.11
8.2.100.0110.00017.78
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0000.01117.50
8.2.60.0060.00317.80
8.2.50.0050.00318.07
8.2.40.0000.00817.90
8.2.30.0000.00718.07
8.2.20.0030.00517.53
8.2.10.0000.00818.04
8.2.00.0050.00517.51
8.1.280.0100.01025.92
8.1.270.0000.00823.87
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0070.00419.22
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0090.00017.23
8.1.190.0030.00617.41
8.1.180.0070.00318.76
8.1.170.0080.00018.64
8.1.160.0030.00522.06
8.1.150.0050.00318.60
8.1.140.0000.00817.28
8.1.130.0000.00717.36
8.1.120.0000.00817.43
8.1.110.0000.00817.25
8.1.100.0070.00017.38
8.1.90.0000.00817.39
8.1.80.0000.00717.43
8.1.70.0030.00317.20
8.1.60.0030.00617.48
8.1.50.0000.00817.41
8.1.40.0000.00817.42
8.1.30.0050.00317.44
8.1.20.0050.00317.62
8.1.10.0070.00017.44
8.1.00.0000.00817.39
8.0.300.0040.00418.95
8.0.290.0030.00317.18
8.0.280.0030.00318.43
8.0.270.0030.00317.21
8.0.260.0060.00016.81
8.0.250.0070.00016.87
8.0.240.0030.00316.93
8.0.230.0000.00716.96
8.0.220.0040.00416.82
8.0.210.0040.00416.85
8.0.200.0050.00316.89
8.0.190.0040.00416.81
8.0.180.0000.00716.73
8.0.170.0000.00716.73
8.0.160.0040.00416.86
8.0.150.0050.00316.83
8.0.140.0040.00416.66
8.0.130.0070.00013.21
8.0.120.0040.00416.66
8.0.110.0040.00416.83
8.0.100.0050.00216.77
8.0.90.0040.00416.65
8.0.80.0070.01016.85
8.0.70.0000.00816.63
8.0.60.0030.00516.93
8.0.50.0000.00816.64
8.0.30.0120.00616.87
8.0.20.0090.00917.40
8.0.10.0000.00717.00
8.0.00.0050.01216.66
7.4.330.0050.00015.03
7.4.320.0060.00016.37
7.4.300.0030.00316.44
7.4.290.0000.00716.50
7.4.280.0000.00716.48
7.4.270.0000.00716.34
7.4.260.0070.00016.41
7.4.250.0000.00716.42
7.4.240.0030.00416.37
7.4.230.0030.00316.32
7.4.220.0030.01216.38
7.4.210.0060.00916.52
7.4.200.0030.00316.59
7.4.190.0000.00716.69
7.4.160.0130.00316.64
7.4.150.0240.00017.40
7.4.140.0070.01117.86
7.4.130.0060.01116.39
7.4.120.0120.00616.53
7.4.110.0090.00916.52
7.4.100.0130.00616.55
7.4.90.0100.01416.39
7.4.80.0090.01219.39
7.4.70.0100.00716.32
7.4.60.0060.01016.43
7.4.50.0000.00816.36
7.4.40.0040.00822.77
7.4.30.0030.01116.46
7.4.00.0070.01014.84
7.3.330.0050.00013.10
7.3.320.0030.00312.98
7.3.310.0030.00316.34
7.3.300.0070.00016.28
7.3.290.0030.01216.31
7.3.280.0110.00516.20
7.3.270.0090.00917.40
7.3.260.0090.00916.33
7.3.250.0060.01116.29
7.3.240.0040.01316.48
7.3.230.0130.00316.50
7.3.210.0130.00416.25
7.3.200.0190.00319.39
7.3.190.0160.00616.36
7.3.180.0100.00616.14
7.3.170.0060.01116.44
7.3.160.0090.00616.38
7.3.120.0090.00314.44
7.3.110.0130.00314.52
7.3.100.0070.01014.66
7.3.90.0060.00614.93
7.3.80.0060.01014.82
7.3.70.0090.00614.68
7.3.60.0070.01014.61
7.3.50.0060.00614.56
7.3.40.0080.00814.46
7.3.30.0040.00714.53
7.3.20.0080.00416.64
7.3.10.0070.00316.71
7.3.00.0100.00316.28
7.2.330.0080.01516.36
7.2.320.0070.01016.70
7.2.310.0100.01416.29
7.2.300.0160.00016.31
7.2.290.0080.00816.53
7.2.240.0070.01014.64
7.2.230.0060.00914.71
7.2.220.0030.01014.94
7.2.210.0100.00714.88
7.2.200.0110.00014.89
7.2.190.0040.01415.06
7.2.180.0100.00714.80
7.2.170.0110.00714.58
7.2.160.0110.00414.96
7.2.150.0160.00016.98
7.2.140.0060.01216.90
7.2.130.0030.01316.85
7.2.120.0100.00716.63
7.2.110.0040.00816.86
7.2.100.0070.01116.74
7.2.90.0030.01316.72
7.2.80.0070.00716.65
7.2.70.0000.01517.01
7.2.60.0080.00516.85
7.2.50.0120.00316.99
7.2.40.0130.00316.81
7.2.30.0090.00616.90
7.2.20.0000.01216.64
7.2.10.0100.00316.82
7.2.00.0030.01018.09
7.1.330.0000.01415.66
7.1.320.0080.00315.77
7.1.310.0030.00915.66
7.1.300.0070.01015.76
7.1.290.0040.01115.40
7.1.280.0030.01015.58
7.1.270.0040.01115.34
7.1.260.0070.00715.71
7.1.250.0070.00715.54
7.1.200.0000.00715.69
7.1.100.0030.00918.10
7.1.70.0000.01016.94
7.1.60.0100.01319.46
7.1.50.0100.01316.52
7.1.00.0070.07722.45
7.0.200.0030.00316.40
7.0.140.0130.06322.09
7.0.60.0000.08019.89
7.0.50.0070.08317.90
7.0.40.0030.04319.96
7.0.30.0400.06720.33
7.0.20.0230.05020.29
7.0.10.0230.08020.23
7.0.00.0130.07720.09
5.6.280.0100.06321.16
5.6.210.0030.08020.71
5.6.200.0100.08718.15
5.6.190.0070.04720.47
5.6.180.0270.07320.58
5.6.170.0270.04320.57
5.6.160.0100.04020.57
5.6.150.0000.04318.20
5.6.140.0000.04018.18
5.6.130.0100.07318.18
5.6.120.0130.03321.00
5.6.110.0170.07720.99
5.6.100.0030.04721.00
5.6.90.0100.07720.96
5.6.80.0170.07320.48
5.6.70.3400.04020.35
5.5.350.0070.07720.40
5.5.340.0100.07718.02
5.5.330.0100.06320.40
5.5.320.0370.06720.51
5.5.310.0200.05720.37
5.5.300.0030.08018.08
5.5.290.0030.08318.09
5.5.280.0100.06320.98
5.5.270.0170.07320.89
5.5.260.0170.06320.79
5.5.250.0130.05320.63
5.5.240.0230.07720.19
5.4.450.0700.07019.63
5.4.440.0830.05319.53
5.4.430.0970.07319.36
5.4.420.0870.06319.37
5.4.410.0600.05719.16
5.4.400.0870.07019.26
5.4.390.0870.05319.15
5.4.380.0400.05318.75
5.4.370.0330.05718.74
5.4.360.0400.04318.51
5.4.350.0330.05718.75
5.4.340.0200.06718.59
5.4.320.0080.04512.50
5.4.310.0040.04012.50
5.4.300.0060.03612.50
5.4.290.0090.04812.48
5.4.280.0080.04712.38
5.4.270.0150.05312.38
5.4.260.0110.05512.38
5.4.250.0130.06512.38
5.4.240.0080.04712.38
5.4.230.0100.06712.37
5.4.220.0200.05912.37
5.4.210.0080.04712.38
5.4.200.0130.05512.38
5.4.190.0080.04612.37
5.4.180.0090.05512.37
5.4.170.0110.05712.37
5.4.160.0100.05612.37
5.4.150.0070.05212.38
5.4.140.0120.05312.05
5.4.130.0120.05212.05
5.4.120.0110.04312.00
5.4.110.0120.05212.00
5.4.100.0090.04811.99
5.4.90.0110.05212.00
5.4.80.0110.05012.00
5.4.70.0040.04812.00
5.4.60.0140.04911.99
5.4.50.0100.04511.99
5.4.40.0120.04311.98
5.4.30.0070.04511.98
5.4.20.0120.04311.98
5.4.10.0110.04211.98
5.4.00.0070.05211.46
5.3.290.0060.03912.80
5.3.280.0080.04212.71
5.3.270.0110.05612.72
5.3.260.0090.05412.72
5.3.250.0090.04512.71
5.3.240.0130.04012.72
5.3.230.0050.04012.71
5.3.220.0070.03812.68
5.3.210.0090.05112.68
5.3.200.0100.04912.68
5.3.190.0080.05312.68
5.3.180.0080.04712.68
5.3.170.0100.04412.67
5.3.160.0130.03412.67
5.3.150.0110.03512.67
5.3.140.0080.05412.66
5.3.130.0080.05612.66
5.3.120.0120.03912.66
5.3.110.0090.03912.66
5.3.100.0090.03612.12
5.3.90.0080.04512.08
5.3.80.0080.04912.07
5.3.70.0100.03712.07
5.3.60.0070.03612.06
5.3.50.0080.04012.00
5.3.40.0070.03812.00
5.3.30.0080.03811.95
5.3.20.0090.03711.73
5.3.10.0070.05311.70
5.3.00.0110.03711.68
5.2.170.0060.0409.18
5.2.160.0160.0569.18
5.2.150.0070.0479.18
5.2.140.0070.0439.18
5.2.130.0100.0369.14
5.2.120.0060.0349.14
5.2.110.0040.0449.15
5.2.100.0050.0509.14
5.2.90.0070.0389.14
5.2.80.0070.0349.14
5.2.70.0060.0369.14
5.2.60.0100.0479.09
5.2.50.0050.0399.06
5.2.40.0110.0339.03
5.2.30.0050.0309.02
5.2.20.0050.0299.00
5.2.10.0060.0278.93
5.2.00.0050.0298.78
5.1.60.0060.0248.07
5.1.50.0070.0278.06
5.1.40.0050.0268.05
5.1.30.0030.0288.40
5.1.20.0090.0238.42
5.1.10.0080.0238.14
5.1.00.0060.0238.14
5.0.50.0080.0346.62
5.0.40.0030.0286.48
5.0.30.0060.0326.29
5.0.20.0050.0206.27
5.0.10.0060.0196.24
5.0.00.0060.0336.23
4.4.90.0030.0164.78
4.4.80.0060.0134.75
4.4.70.0040.0174.75
4.4.60.0050.0154.75
4.4.50.0030.0204.77
4.4.40.0060.0234.71
4.4.30.0030.0164.76
4.4.20.0040.0154.84
4.4.10.0030.0164.85
4.4.00.0030.0284.76
4.3.110.0030.0174.67
4.3.100.0030.0234.67
4.3.90.0030.0224.64
4.3.80.0060.0334.59
4.3.70.0040.0194.63
4.3.60.0050.0184.63
4.3.50.0030.0184.63
4.3.40.0070.0264.54
4.3.30.0040.0213.28
4.3.20.0050.0203.26
4.3.10.0040.0203.22
4.3.00.0170.01710.31

preferences:
58.55 ms | 401 KiB | 5 Q