3v4l.org

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

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.0110.00418.46
8.3.30.0100.00318.82
8.3.20.0040.00420.34
8.3.10.0070.00023.65
8.3.00.0050.00517.25
8.2.170.0090.00622.96
8.2.160.0070.00720.35
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00322.25
8.2.110.0060.00322.08
8.2.100.0060.00617.72
8.2.90.0000.00819.27
8.2.80.0050.00317.97
8.2.70.0000.00817.38
8.2.60.0000.00817.80
8.2.50.0000.00918.07
8.2.40.0060.00319.95
8.2.30.0040.00417.88
8.2.20.0050.00317.59
8.2.10.0040.00417.98
8.2.00.0040.00417.67
8.1.270.0050.00323.98
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00924.03
8.1.230.0110.00017.42
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0080.00017.23
8.1.190.0040.00417.28
8.1.180.0040.00818.10
8.1.170.0030.00718.65
8.1.160.0000.00721.99
8.1.150.0000.00718.59
8.1.140.0000.00717.29
8.1.130.0030.00317.69
8.1.120.0030.00517.44
8.1.110.0040.00417.39
8.1.100.0040.00417.30
8.1.90.0000.00717.45
8.1.80.0000.00717.39
8.1.70.0000.00717.39
8.1.60.0040.00417.54
8.1.50.0030.00617.44
8.1.40.0040.00417.40
8.1.30.0050.00317.39
8.1.20.0050.00217.56
8.1.10.0000.00817.39
8.1.00.0000.00717.38
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0070.00017.14
8.0.260.0000.00617.09
8.0.250.0070.00016.83
8.0.240.0070.00016.87
8.0.230.0050.00216.72
8.0.220.0000.00716.80
8.0.210.0030.00316.80
8.0.200.0040.00416.87
8.0.190.0000.00716.92
8.0.180.0040.00416.72
8.0.170.0040.00416.91
8.0.160.0040.00416.86
8.0.150.0050.00316.69
8.0.140.0070.00016.84
8.0.130.0060.00313.23
8.0.120.0040.00416.79
8.0.110.0050.00316.78
8.0.100.0000.00816.78
8.0.90.0040.00416.87
8.0.80.0000.02016.88
8.0.70.0000.00716.64
8.0.60.0040.00416.83
8.0.50.0000.00716.70
8.0.30.0080.01216.93
8.0.20.0150.00417.40
8.0.10.0000.00716.84
8.0.00.0080.00916.54
7.4.330.0060.00015.00
7.4.320.0000.00616.43
7.4.300.0060.00016.54
7.4.290.0030.00316.42
7.4.280.0070.00016.41
7.4.270.0030.00316.54
7.4.260.0040.00416.55
7.4.250.0030.00316.44
7.4.240.0020.00516.43
7.4.230.0070.00016.35
7.4.220.0100.01316.46
7.4.210.0100.00816.46
7.4.200.0000.00716.43
7.4.190.0070.00016.61
7.4.160.0060.00916.31
7.4.150.0100.00717.40
7.4.140.0110.00717.86
7.4.130.0090.00816.40
7.4.120.0110.00616.42
7.4.110.0060.01016.36
7.4.100.0110.00816.38
7.4.90.0060.01216.57
7.4.80.0060.01619.39
7.4.70.0100.00616.54
7.4.60.0080.00816.38
7.4.50.0040.00416.52
7.4.40.0070.00722.77
7.4.30.0070.00816.52
7.4.00.0000.01615.12
7.3.330.0020.00313.20
7.3.320.0020.00213.24
7.3.310.0040.00416.12
7.3.300.0040.00416.13
7.3.290.0130.00616.07
7.3.280.0100.00716.14
7.3.270.0040.01417.40
7.3.260.0150.00916.38
7.3.250.0130.00716.26
7.3.240.0090.00916.04
7.3.230.0150.00716.39
7.3.210.0030.01316.22
7.3.200.0120.01019.39
7.3.190.0000.01816.45
7.3.180.0090.00616.33
7.3.170.0090.01316.27
7.3.160.0080.00816.18
7.3.120.0100.00714.96
7.2.330.0070.01116.60
7.2.320.0120.00916.32
7.2.310.0040.01716.55
7.2.300.0110.00416.21
7.2.290.0060.01016.61
7.2.110.0040.01116.33
7.2.100.0000.01416.41
7.2.90.0100.00716.48
7.2.80.0070.00716.28
7.2.70.0030.01016.64
7.2.60.0050.00916.69
7.2.50.0030.00716.44
7.2.40.0140.00016.69
7.2.30.0090.00016.79
7.2.20.0030.01316.64
7.2.10.0070.01016.63
7.2.00.0030.01117.96
7.1.230.0000.01115.61
7.1.220.0070.00715.46
7.1.210.0070.00715.36
7.1.200.0070.00315.43
7.1.190.0060.00315.55
7.1.180.0090.00315.48
7.1.170.0030.00915.45
7.1.160.0000.01315.64
7.1.150.0060.01015.41
7.1.140.0030.01015.50
7.1.130.0060.00615.39
7.1.120.0090.00315.66
7.1.110.0090.00315.54
7.1.100.0040.01016.86
7.1.90.0070.00715.59
7.1.80.0090.00315.60
7.1.70.0030.00816.18
7.1.60.0030.01217.57
7.1.50.0110.00916.18
7.1.40.0060.00915.80
7.1.30.0060.00615.82
7.1.20.0040.01415.60
7.1.10.0040.00815.30
7.1.00.0080.03818.85
7.0.310.0070.00715.16
7.0.300.0000.01515.21
7.0.290.0050.00515.19
7.0.280.0030.01315.20
7.0.270.0090.00315.10
7.0.260.0030.00915.21
7.0.250.0060.00615.19
7.0.240.0030.01015.18
7.0.230.0070.00715.12
7.0.220.0040.01115.40
7.0.210.0030.01014.98
7.0.200.0050.00515.88
7.0.190.0030.00615.22
7.0.180.0090.00315.22
7.0.170.0040.01115.34
7.0.160.0030.00715.05
7.0.150.0080.00415.34
7.0.140.0110.03518.67
7.0.130.0030.00714.99
7.0.120.0050.00315.25
7.0.110.0040.00715.01
7.0.100.0090.00315.18
7.0.90.0100.00315.11
7.0.80.0080.00415.32
7.0.70.0070.00715.33
7.0.60.0080.03017.73
7.0.50.0020.02516.57
7.0.40.0090.04316.60
7.0.30.0240.02116.66
7.0.20.0230.03816.57
7.0.10.0070.03916.83
7.0.00.0000.05116.54
5.6.380.0070.00714.14
5.6.370.0070.00413.69
5.6.360.0000.00814.02
5.6.350.0030.01014.41
5.6.340.0000.01314.15
5.6.330.0000.01514.34
5.6.320.0060.00613.98
5.6.310.0030.00613.83
5.6.300.0090.00014.10
5.6.290.0090.00314.11
5.6.280.0050.04017.60
5.6.270.0000.01114.04
5.6.260.0060.00314.25
5.6.250.0120.00314.09
5.6.240.0080.00814.27
5.6.230.0080.00014.03
5.6.220.0100.00014.30
5.6.210.0080.04117.40
5.6.200.0100.04516.13
5.6.190.0050.03817.38
5.6.180.0240.02317.24
5.6.170.0150.04317.26
5.6.160.0020.02617.17
5.6.150.0070.03916.04
5.6.140.0070.02516.16
5.6.130.0030.04816.17
5.6.120.0030.02817.48
5.6.110.0050.02217.48
5.6.100.0120.04017.68
5.6.90.0070.02817.64
5.6.80.0050.02417.20
5.6.70.1780.01917.19
5.6.60.0090.00614.21
5.6.50.0000.00713.93
5.6.40.0030.00314.05
5.6.30.0040.00413.98
5.6.20.0040.01113.93
5.6.10.0060.00013.83
5.6.00.0060.00613.89
5.5.380.0040.00712.79
5.5.370.0030.00612.79
5.5.360.0040.00212.79
5.5.350.0040.01916.62
5.5.340.0120.03415.39
5.5.330.0040.03516.64
5.5.320.0200.02716.51
5.5.310.0170.02716.53
5.5.300.0050.02615.46
5.5.290.0030.04215.37
5.5.280.0020.04716.78
5.5.270.0100.04016.83
5.5.260.0070.03016.88
5.5.250.0080.04016.68
5.5.240.0100.04016.40
5.5.230.0030.00612.79
5.5.220.0080.00312.79
5.5.210.0030.00712.79
5.5.200.0060.00312.79
5.5.190.0030.00612.79
5.5.180.0000.00512.79
5.5.170.0130.00013.91
5.5.160.0060.00312.79
5.5.150.0040.00712.79
5.5.140.0000.00812.79
5.5.130.0030.00712.79
5.5.120.0040.00412.79
5.5.110.0080.00312.79
5.5.100.0030.00712.79
5.5.90.0040.00412.79
5.5.80.0070.00312.79
5.5.70.0030.00712.79
5.5.60.0030.00812.79
5.5.50.0040.00412.79
5.5.40.0030.00612.79
5.5.30.0000.01012.79
5.5.20.0060.00612.79
5.5.10.0060.00012.79
5.5.00.0030.00712.79
5.4.450.0290.03516.13
5.4.440.0430.03516.21
5.4.430.0490.03116.21
5.4.420.0380.00216.16
5.4.410.0050.03415.87
5.4.400.0080.03415.82
5.4.390.0120.02915.80
5.4.380.0170.02715.65
5.4.370.0100.02715.82
5.4.360.0090.02515.74
5.4.350.0050.02012.41
5.4.340.0040.02112.40
5.4.330.0030.00312.79
5.4.320.0060.02612.64
5.4.310.0090.02212.64
5.4.300.0050.01912.65
5.4.290.0050.02712.63
5.4.280.0040.03012.58
5.4.270.0080.02412.58
5.4.260.0040.02512.59
5.4.250.0090.01812.59
5.4.240.0050.02112.58
5.4.230.0070.02112.58
5.4.220.0070.02212.58
5.4.210.0090.04112.58
5.4.200.0060.02212.58
5.4.190.0040.02512.58
5.4.180.0080.02012.58
5.4.170.0070.02512.58
5.4.160.0080.02012.58
5.4.150.0100.02212.58
5.4.140.0050.03212.42
5.4.130.0070.02112.41
5.4.120.0040.03012.39
5.4.110.0030.03412.39
5.4.100.0100.02512.39
5.4.90.0080.04112.39
5.4.80.0050.02512.39
5.4.70.0040.03012.39
5.4.60.0040.02812.39
5.4.50.0080.01912.39
5.4.40.0090.02112.38
5.4.30.0080.02412.38
5.4.20.0050.03212.38
5.4.10.0050.03112.38
5.4.00.0070.02912.13
5.3.290.0050.02212.79
5.3.280.0070.03512.75
5.3.270.0070.03612.76
5.3.260.0110.02912.76
5.3.250.0070.02612.76
5.3.240.0100.02212.76
5.3.230.0060.02712.75
5.3.220.0070.02812.73
5.3.210.0050.02712.73
5.3.200.0080.02112.73
5.3.190.0090.02312.73
5.3.180.0050.02212.73
5.3.170.0100.02112.73
5.3.160.0100.02412.73
5.3.150.0060.03612.73
5.3.140.0050.03312.72
5.3.130.0060.03512.72
5.3.120.0070.03312.72
5.3.110.0080.02912.72
5.3.100.0080.03212.45
5.3.90.0080.03012.44
5.3.80.0040.03312.43
5.3.70.0040.02512.43
5.3.60.0060.02612.43
5.3.50.0090.02512.40
5.3.40.0090.04012.39
5.3.30.0080.03012.37
5.3.20.0040.02912.26
5.3.10.0100.03012.24
5.3.00.0090.02612.23
5.2.170.0060.03010.98
5.2.160.0060.02010.98
5.2.150.0100.02510.98
5.2.140.0060.02810.98
5.2.130.0080.02810.96
5.2.120.0090.02010.96
5.2.110.0050.02110.97
5.2.100.0080.01510.97
5.2.90.0080.01610.96
5.2.80.0050.02110.96
5.2.70.0100.02210.96
5.2.60.0040.02210.94
5.2.50.0040.02710.92
5.2.40.0070.02010.91
5.2.30.0060.02510.90
5.2.20.0040.02210.90
5.2.10.0060.02110.86
5.2.00.0070.02110.79
5.1.60.0030.02010.43
5.1.50.0050.01910.42
5.1.40.0080.03010.42
5.1.30.0060.01910.60
5.1.20.0040.02510.61
5.1.10.0060.01910.46
5.1.00.0080.01910.46
5.0.50.0030.0169.71
5.0.40.0030.0179.63
5.0.30.0060.0179.54
5.0.20.0030.0189.53
5.0.10.0070.0239.51
5.0.00.0100.0309.51
4.4.90.0050.0128.78
4.4.80.0080.0168.77
4.4.70.0060.0148.77
4.4.60.0030.0188.77
4.4.50.0040.0378.78
4.4.40.0060.0168.75
4.4.30.0070.0128.78
4.4.20.0090.0188.82
4.4.10.0060.0278.82
4.4.00.0050.0158.77
4.3.110.0020.0118.73
4.3.100.0040.0098.73
4.3.90.0020.0118.71
4.3.80.0040.0168.69
4.3.70.0020.0098.71
4.3.60.0040.0098.71
4.3.50.0030.0098.71
4.3.40.0050.0118.66
4.3.30.0030.0108.04
4.3.20.0060.0078.02
4.3.10.0020.0108.01
4.3.00.0000.01610.32

preferences:
44.25 ms | 400 KiB | 5 Q