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"; } } 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.00716.38
8.3.60.0140.00016.63
8.3.50.0070.00822.11
8.3.40.0130.00318.81
8.3.30.0040.01119.10
8.3.20.0040.00420.07
8.3.10.0000.00823.64
8.3.00.0030.00717.21
8.2.180.0140.00318.18
8.2.170.0110.00422.96
8.2.160.0070.00720.44
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00322.26
8.2.110.0060.00319.39
8.2.100.0120.00017.72
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0070.00018.04
8.2.50.0040.00418.07
8.2.40.0060.00319.88
8.2.30.0000.00718.09
8.2.20.0000.00717.54
8.2.10.0000.00717.87
8.2.00.0030.00917.65
8.1.280.0000.01425.92
8.1.270.0030.00623.97
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.20
8.1.230.0040.00720.64
8.1.220.0050.00317.74
8.1.210.0030.00718.77
8.1.200.0030.00617.11
8.1.190.0000.00817.30
8.1.180.0060.00618.10
8.1.170.0040.00718.57
8.1.160.0050.00222.00
8.1.150.0030.00518.56
8.1.140.0040.00417.42
8.1.130.0000.00717.75
8.1.120.0040.00417.24
8.1.110.0050.00217.45
8.1.100.0070.00017.29
8.1.90.0030.00317.27
8.1.80.0070.00017.39
8.1.70.0000.00617.36
8.1.60.0040.00417.40
8.1.50.0040.00417.39
8.1.40.0000.00717.45
8.1.30.0050.00317.55
8.1.20.0000.00817.62
8.1.10.0070.00017.51
8.1.00.0000.00817.44
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0000.00717.28
8.0.260.0000.00617.24
8.0.250.0000.00716.97
8.0.240.0070.00016.84
8.0.230.0070.00016.87
8.0.220.0060.00016.70
8.0.210.0040.00416.80
8.0.200.0000.00816.87
8.0.190.0030.00516.78
8.0.180.0000.00716.74
8.0.170.0020.00516.77
8.0.160.0040.00416.69
8.0.150.0000.00716.75
8.0.140.0040.00416.82
8.0.130.0070.00013.24
8.0.120.0040.00416.80
8.0.110.0000.00716.73
8.0.100.0040.00416.67
8.0.90.0040.00416.68
8.0.80.0080.00816.80
8.0.70.0040.00416.60
8.0.60.0000.00716.85
8.0.50.0000.00716.88
8.0.30.0120.00616.97
8.0.20.0030.01617.40
8.0.10.0000.00717.06
8.0.00.0060.01116.55
7.4.330.0000.00515.00
7.4.320.0000.00716.54
7.4.300.0060.00016.34
7.4.290.0030.00316.44
7.4.280.0000.00716.35
7.4.270.0030.00316.42
7.4.260.0070.00016.36
7.4.250.0050.00316.50
7.4.240.0020.00516.44
7.4.230.0000.00816.41
7.4.220.0170.00616.42
7.4.210.0060.00816.52
7.4.200.0070.00016.53
7.4.190.0070.00016.42
7.4.160.0090.00616.42
7.4.150.0120.00617.40
7.4.140.0120.00517.86
7.4.130.0100.00716.47
7.4.120.0070.00916.37
7.4.110.0090.00916.63
7.4.100.0090.00916.64
7.4.90.0030.01816.62
7.4.80.0040.01419.39
7.4.70.0080.00816.36
7.4.60.0060.00916.47
7.4.50.0000.00516.53
7.4.40.0030.00822.77
7.4.30.0000.01516.32
7.4.00.0000.01414.92
7.3.330.0000.00513.21
7.3.320.0030.00313.24
7.3.310.0060.00316.32
7.3.300.0030.00316.25
7.3.290.0070.00716.26
7.3.280.0080.00916.23
7.3.270.0150.00417.40
7.3.260.0070.01016.41
7.3.250.0120.00816.23
7.3.240.0100.00716.26
7.3.230.0170.00716.57
7.3.210.0080.00816.32
7.3.200.0090.00919.39
7.3.190.0090.01316.27
7.3.180.0030.01316.39
7.3.170.0060.01216.33
7.3.160.0100.00716.21
7.3.120.0100.01014.78
7.3.110.0040.01414.73
7.3.100.0030.01214.77
7.3.90.0090.00614.66
7.3.80.0060.00914.78
7.3.70.0040.00714.57
7.3.60.0070.00714.70
7.3.50.0060.00914.91
7.3.40.0000.01214.75
7.3.30.0030.00714.90
7.3.20.0080.00616.77
7.3.10.0120.00416.50
7.3.00.0050.01316.44
7.2.330.0060.01216.30
7.2.320.0030.01916.22
7.2.310.0100.00716.22
7.2.300.0090.00616.36
7.2.290.0090.00816.63
7.2.240.0150.00315.06
7.2.230.0000.01614.75
7.2.220.0030.01314.81
7.2.210.0000.01114.55
7.2.200.0060.00915.09
7.2.190.0090.00914.93
7.2.180.0070.01014.97
7.2.170.0030.01014.90
7.2.160.0090.00315.07
7.2.150.0070.01016.91
7.2.140.0070.00716.64
7.2.130.0080.01316.76
7.2.120.0090.00816.59
7.2.110.0090.00816.63
7.2.100.0110.00516.60
7.2.90.0140.00516.57
7.2.80.0120.00516.90
7.2.70.0130.00616.75
7.2.60.0110.00516.85
7.2.50.0050.00916.64
7.2.40.0050.00916.57
7.2.30.0050.00816.81
7.2.20.0070.00616.71
7.2.10.0060.00616.85
7.2.00.0040.00917.78
7.1.330.0040.01415.80
7.1.320.0070.00715.64
7.1.310.0070.00715.67
7.1.300.0090.00615.80
7.1.290.0030.00915.71
7.1.280.0070.00715.68
7.1.270.0070.00715.63
7.1.260.0060.00315.57
7.1.250.0050.01015.54
7.1.100.0060.00618.32
7.1.70.0000.00717.02
7.1.60.0030.01919.46
7.1.50.0100.01316.77
7.1.00.0030.07722.45
7.0.200.0110.00316.71
7.0.140.0070.07022.07
7.0.60.0330.07020.00
7.0.50.0070.05017.86
7.0.40.0000.05020.27
7.0.30.0170.04320.07
7.0.20.0230.06720.06
7.0.10.0070.09020.16
7.0.00.0030.05020.07
5.6.280.0070.07021.07
5.6.210.0070.08020.61
5.6.200.0030.05718.18
5.6.190.0000.05020.45
5.6.180.0230.03320.45
5.6.170.0300.03320.50
5.6.160.0070.07320.61
5.6.150.0070.04318.21
5.6.140.0070.08018.26
5.6.130.0000.09718.15
5.6.120.0030.04321.12
5.6.110.0100.07321.04
5.6.100.0100.07321.11
5.6.90.0100.08020.97
5.6.80.0100.07020.41
5.5.350.0200.07020.45
5.5.340.0100.07717.94
5.5.330.0000.04720.27
5.5.320.0270.05020.31
5.5.310.0230.07720.35
5.5.300.0070.07717.95
5.5.290.0100.08017.94
5.5.280.0030.08320.73
5.5.270.0130.05320.68
5.5.260.0100.05720.79
5.5.250.0030.05320.66
5.5.240.0330.05020.08
5.4.450.0730.05319.16
5.4.440.0830.08019.18
5.4.430.0970.04719.54
5.4.420.0270.06719.36
5.4.410.0700.05319.05
5.4.400.0570.05319.34
5.4.390.0500.07719.14
5.4.380.0600.05718.60
5.4.370.0470.05318.72
5.4.360.0300.05718.84
5.4.350.0330.05718.86
5.4.340.0470.04718.75
5.4.320.0060.03612.50
5.4.310.0070.03712.50
5.4.300.0080.04112.50
5.4.290.0070.04112.48
5.4.280.0130.03312.38
5.4.270.0060.04012.38
5.4.260.0070.03812.38
5.4.250.0080.03712.38
5.4.240.0090.03512.38
5.4.230.0080.04012.37
5.4.220.0090.05012.37
5.4.210.0120.04512.37
5.4.200.0130.04412.37
5.4.190.0070.04312.37
5.4.180.0050.04012.37
5.4.170.0090.05212.38
5.4.160.0090.03712.38
5.4.150.0090.03712.37
5.4.140.0090.04112.06
5.4.130.0070.03612.04
5.4.120.0110.03212.00
5.4.110.0050.03912.00
5.4.100.0090.03612.00
5.4.90.0080.03712.00
5.4.80.0060.03912.00
5.4.70.0080.03511.99
5.4.60.0090.03512.00
5.4.50.0050.03911.99
5.4.40.0050.03611.98
5.4.30.0050.04411.98
5.4.20.0070.03711.98
5.4.10.0090.03711.97
5.4.00.0050.03811.46
5.3.290.0090.04412.80
5.3.280.0070.03812.71
5.3.270.0060.04212.73
5.3.260.0090.04412.72
5.3.250.0090.03912.72
5.3.240.0100.04512.71
5.3.230.0090.03712.71
5.3.220.0070.03812.68
5.3.210.0060.04112.68
5.3.200.0120.03312.68
5.3.190.0070.03812.68
5.3.180.0100.03712.67
5.3.170.0100.03512.67
5.3.160.0100.03512.67
5.3.150.0090.04712.67
5.3.140.0080.05312.66
5.3.130.0110.04612.66
5.3.120.0100.04912.66
5.3.110.0110.04412.66
5.3.100.0070.03512.12
5.3.90.0080.03912.08
5.3.80.0070.04412.07
5.3.70.0070.03712.07
5.3.60.0150.04212.06
5.3.50.0090.05012.00
5.3.40.0190.04212.00
5.3.30.0070.05211.95
5.3.20.0080.03511.73
5.3.10.0070.05111.70
5.3.00.0070.04111.68
5.2.170.0020.0359.18
5.2.160.0060.0299.19
5.2.150.0070.0349.18
5.2.140.0060.0449.18
5.2.130.0070.0439.14
5.2.120.0100.0429.14
5.2.110.0050.0429.14
5.2.100.0050.0439.14
5.2.90.0090.0469.14
5.2.80.0090.0419.14
5.2.70.0090.0489.14
5.2.60.0050.0359.09
5.2.50.0070.0349.06
5.2.40.0060.0309.04
5.2.30.0090.0309.01
5.2.20.0040.0329.00
5.2.10.0080.0298.92
5.2.00.0050.0318.78
5.1.60.0040.0278.07
5.1.50.0150.0208.06
5.1.40.0070.0268.05
5.1.30.0130.0468.39
5.1.20.0030.0538.42
5.1.10.0070.0368.14
5.1.00.0070.0378.14
5.0.50.0040.0296.62
5.0.40.0030.0226.48
5.0.30.0060.0426.29
5.0.20.0050.0276.27
5.0.10.0060.0226.24
5.0.00.0080.0426.23
4.4.90.0050.0174.78
4.4.80.0030.0184.76
4.4.70.0060.0164.75
4.4.60.0030.0164.75
4.4.50.0040.0174.77
4.4.40.0020.0284.70
4.4.30.0040.0164.76
4.4.20.0050.0154.85
4.4.10.0060.0174.85
4.4.00.0040.0264.75
4.3.110.0040.0174.67
4.3.100.0070.0134.66
4.3.90.0040.0154.63
4.3.80.0050.0254.58
4.3.70.0030.0244.63
4.3.60.0030.0304.63
4.3.50.0070.0224.62
4.3.40.0030.0354.54
4.3.30.0050.0213.29
4.3.20.0020.0263.25
4.3.10.0050.0223.21
4.3.00.0030.01710.31

preferences:
40.13 ms | 401 KiB | 5 Q