3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo { public function foo() { echo "hi\n"; } } trait foo2 { public function foo() { echo "bye\n"; } } class Bar { use Foo, foo2 { Foo::foo as baz; } } $b = new Bar; $b->baz(); $b->foo();

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.0130.00318.31
8.3.50.0120.01022.10
8.3.40.0070.00718.89
8.3.30.0000.01418.96
8.3.20.0000.00920.21
8.3.10.0060.00320.11
8.3.00.0040.00419.66
8.2.180.0100.00716.38
8.2.170.0110.00722.96
8.2.160.0060.00920.57
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.27
8.2.110.0090.00022.11
8.2.100.0070.00417.72
8.2.90.0030.00517.63
8.2.80.0080.00317.97
8.2.70.0030.00718.04
8.2.60.0090.00017.80
8.2.50.0080.00318.10
8.2.40.0060.00320.67
8.2.30.0040.00719.34
8.2.20.0040.00417.66
8.2.10.0030.00518.04
8.2.00.0000.00817.61
8.1.280.0100.01025.92
8.1.270.0050.00322.14
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0110.00020.88
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0000.00917.35
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0050.00318.47
8.1.160.0070.00021.91
8.1.150.0080.00018.72
8.1.140.0040.00417.26
8.1.130.0070.00017.71
8.1.120.0070.00017.35
8.1.110.0030.00517.40
8.1.100.0000.00817.40
8.1.90.0000.00717.41
8.1.80.0000.00717.39
8.1.70.0000.00717.27
8.1.60.0050.00317.54
8.1.50.0080.00017.37
8.1.40.0000.00817.47
8.1.30.0040.00417.57
8.1.20.0000.00817.48
8.1.10.0070.00017.39
8.1.00.0030.00517.36
8.0.300.0040.00419.73
8.0.290.0000.00716.75
8.0.280.0070.00018.39
8.0.270.0000.00717.20
8.0.260.0000.00617.22
8.0.250.0000.00716.87
8.0.240.0070.00016.92
8.0.230.0030.00316.97
8.0.220.0000.00716.80
8.0.210.0070.00016.93
8.0.200.0000.00716.84
8.0.190.0000.00716.97
8.0.180.0040.00416.91
8.0.170.0040.00416.96
8.0.160.0040.00416.93
8.0.150.0040.00416.77
8.0.140.0080.00016.90
8.0.130.0030.00313.32
8.0.120.0040.00416.80
8.0.110.0000.00716.82
8.0.100.0030.00416.86
8.0.90.0050.00216.92
8.0.80.0090.01316.84
8.0.70.0000.00716.86
8.0.60.0030.00316.87
8.0.50.0070.00016.89
8.0.30.0140.01116.98
8.0.20.0090.00917.40
8.0.10.0000.00717.04
8.0.00.0090.00816.76
7.4.330.0030.00315.04
7.4.320.0030.00316.54
7.4.300.0060.00016.48
7.4.290.0000.00716.50
7.4.280.0070.00016.45
7.4.270.0040.00416.39
7.4.260.0030.00316.53
7.4.250.0080.00016.54
7.4.240.0020.00516.51
7.4.230.0000.00716.32
7.4.220.0110.00716.38
7.4.210.0140.00716.47
7.4.200.0000.00816.34
7.4.160.0050.01016.31
7.4.150.0120.00917.40
7.4.140.0130.00717.86
7.4.130.0050.01216.38
7.4.120.0050.01116.37
7.4.110.0120.00916.46
7.4.100.0050.01116.52
7.4.90.0140.00316.50
7.4.80.0120.00616.46
7.4.70.0070.01016.51
7.4.60.0040.01216.39
7.4.50.0020.00216.43
7.4.40.0170.00316.53
7.4.30.0120.01216.59
7.4.10.0000.01914.66
7.4.00.0080.01014.79
7.3.330.0020.00213.11
7.3.320.0000.00513.21
7.3.310.0070.00016.28
7.3.300.0000.00616.24
7.3.290.0100.00316.25
7.3.280.0100.00516.24
7.3.270.0070.01117.40
7.3.260.0090.00916.39
7.3.250.0050.01216.50
7.3.240.0090.00916.31
7.3.230.0090.00916.39
7.3.210.0150.00316.30
7.3.200.0000.01519.39
7.3.190.0070.01316.50
7.3.180.0070.01316.25
7.3.170.0050.01116.29
7.3.160.0040.01116.30
7.3.130.0150.00014.84
7.3.120.0110.00514.68
7.3.110.0100.00814.92
7.3.100.0070.01014.65
7.3.90.0040.00914.84
7.3.80.0100.00714.70
7.3.70.0030.00814.62
7.3.60.0020.01114.75
7.3.50.0070.00414.73
7.3.40.0100.00214.67
7.3.30.0040.00914.71
7.3.20.0100.00616.38
7.3.10.0060.00616.39
7.3.00.0080.00516.53
7.2.330.0030.01616.32
7.2.320.0160.00616.52
7.2.310.0060.01216.41
7.2.300.0180.00416.25
7.2.290.0090.00816.23
7.2.260.0030.01714.77
7.2.250.0030.01514.83
7.2.240.0080.01014.77
7.2.230.0060.00914.65
7.2.220.0070.00714.79
7.2.210.0070.00914.81
7.2.200.0040.00814.59
7.2.190.0060.00414.85
7.2.180.0070.00914.86
7.2.170.0060.00614.79
7.2.160.0020.00814.93
7.2.150.0130.00416.84
7.2.140.0030.01316.64
7.2.130.0020.01016.77
7.2.120.0050.00816.76
7.2.110.0070.00516.80
7.2.100.0120.00716.79
7.2.90.0100.00616.58
7.2.80.0050.00816.72
7.2.70.0130.00016.71
7.2.60.0020.01116.63
7.2.50.0030.01316.81
7.2.40.0080.00616.61
7.2.30.0110.00316.90
7.2.20.0020.01416.65
7.2.10.0030.00916.61
7.2.00.0040.00817.71
7.1.330.0050.01115.56
7.1.320.0000.01515.52
7.1.310.0050.01015.68
7.1.300.0050.01115.36
7.1.290.0060.00915.56
7.1.280.0050.00815.65
7.1.270.0090.00515.44
7.1.260.0060.00615.62
7.1.250.0050.00515.69
7.1.240.0070.00615.65
7.1.230.0050.00815.56
7.1.220.0050.00815.49
7.1.210.0040.01015.63
7.1.200.0070.00615.59
7.1.190.0050.01015.60
7.1.180.0050.00815.51
7.1.170.0070.00715.64
7.1.160.0030.00915.72
7.1.150.0060.00715.63
7.1.140.0110.00515.80
7.1.130.0080.00615.36
7.1.120.0090.00415.64
7.1.110.0050.00815.63
7.1.100.0040.01116.42
7.1.90.0040.00915.68
7.1.80.0030.01115.61
7.1.70.0050.00616.18
7.1.60.0030.01016.85
7.1.50.0070.00916.16
7.1.40.0070.00515.73
7.1.30.0050.00815.45
7.1.20.0060.00615.65
7.1.10.0050.01015.67
7.1.00.0080.02817.79
7.0.330.0060.00615.31
7.0.320.0050.00715.19
7.0.310.0070.00115.14
7.0.300.0040.00915.31
7.0.290.0090.00415.32
7.0.280.0070.00515.29
7.0.270.0030.01015.18
7.0.260.0050.00814.98
7.0.250.0060.00715.26
7.0.240.0050.00715.17
7.0.230.0080.00715.16
7.0.220.0080.00615.16
7.0.210.0070.00915.18
7.0.200.0050.00615.79
7.0.190.0030.00915.32
7.0.180.0080.00615.22
7.0.170.0060.00615.30
7.0.160.0060.00515.44
7.0.150.0070.00815.36
7.0.140.0050.03017.57
7.0.130.0050.00715.49
7.0.120.0070.00715.39
7.0.110.0020.01115.34
7.0.100.0090.00515.38
7.0.90.0090.00415.35
7.0.80.0020.00815.10
7.0.70.0060.00615.33
7.0.60.0080.01716.76
7.0.50.0070.03216.24
7.0.40.0080.02415.66
7.0.30.0180.02615.65
7.0.20.0090.02215.67
7.0.10.0090.01815.55
7.0.00.0050.03015.65
5.6.400.0070.00914.44
5.6.390.0050.01013.85
5.6.380.0060.00714.04
5.6.370.0010.00914.08
5.6.360.0130.00514.21
5.6.350.0030.00814.27
5.6.340.0110.00514.09
5.6.330.0050.00714.05
5.6.320.0060.00814.15
5.6.310.0020.01414.26
5.6.300.0070.00613.97
5.6.290.0050.01214.32
5.6.280.0060.02616.51
5.6.270.0020.01214.20
5.6.260.0060.01014.15
5.6.250.0030.01014.29
5.6.240.0060.00614.13
5.6.230.0070.00414.26
5.6.220.0080.00814.22
5.6.210.0070.01916.24
5.6.200.0050.03515.34
5.6.190.0040.03616.20
5.6.180.0120.01716.39
5.6.170.0100.02216.27
5.6.160.0020.02416.24
5.6.150.0070.03315.37
5.6.140.0070.02915.45
5.6.130.0040.03515.55
5.6.120.0100.02916.50
5.6.110.0060.03716.50
5.6.100.0060.02416.44
5.6.90.0040.02616.39
5.6.80.0100.01516.09
5.6.70.1220.01516.16
5.6.60.0060.00614.26
5.6.50.0090.00714.06
5.6.40.0080.00514.22
5.6.30.0070.00713.96
5.6.20.0080.00513.99
5.6.10.0070.00614.09
5.6.00.0030.01014.06
5.5.380.0110.00314.17
5.5.370.0040.00614.17
5.5.360.0050.01013.91
5.5.350.0080.01816.17
5.5.340.0110.01415.29
5.5.330.0020.02816.25
5.5.320.0150.02216.06
5.5.310.0120.02816.14
5.5.300.0050.03315.58
5.5.290.0080.03115.31
5.5.280.0010.02216.27
5.5.270.0050.03516.39
5.5.260.0050.02016.27
5.5.250.0080.02616.15
5.5.240.0110.03216.10
5.5.230.0050.00914.29
5.5.220.0060.00813.91
5.5.210.0050.01114.16
5.5.200.0070.00814.07
5.5.190.0070.00714.05
5.5.180.0070.01014.16
5.5.170.0050.01014.08
5.5.160.0020.00914.04
5.5.150.0090.00413.98
5.5.140.0060.00614.08
5.5.130.0050.00714.18
5.5.120.0040.01014.20
5.5.110.0040.01113.92
5.5.100.0020.01114.04
5.5.90.0100.00414.22
5.5.80.0040.01114.03
5.5.70.0020.01014.12
5.5.60.0080.00514.08
5.5.50.0030.00613.97
5.5.40.0050.01014.07
5.5.30.0060.00714.20
5.5.20.0080.00414.10
5.5.10.0020.01013.70
5.5.00.0040.00514.08
5.4.450.0080.02413.89
5.4.440.0270.02713.83
5.4.430.0270.02513.96
5.4.420.0100.01713.95
5.4.410.0390.02614.00
5.4.400.0310.02213.84
5.4.390.0410.01713.93
5.4.380.0250.02213.75
5.4.370.0110.02513.77
5.4.360.0120.02713.67
5.4.350.0180.01913.75
5.4.340.0110.02213.78
5.4.330.0060.00411.23
5.4.320.0040.01911.66
5.4.310.0050.01811.64
5.4.300.0040.01511.67
5.4.290.0040.01711.57
5.4.280.0030.01811.61
5.4.270.0070.01811.58
5.4.260.0020.01911.67
5.4.250.0050.01411.56
5.4.240.0040.01611.49
5.4.230.0060.01511.59
5.4.220.0050.01511.63
5.4.210.0050.01711.58
5.4.200.0030.01911.63
5.4.190.0020.01711.58
5.4.180.0030.01711.50
5.4.170.0040.01611.55
5.4.160.0070.01311.58
5.4.150.0040.01511.58
5.4.140.0060.01311.53
5.4.130.0040.01711.63
5.4.120.0040.01711.50
5.4.110.0020.01611.54
5.4.100.0050.01611.46
5.4.90.0050.01511.53
5.4.80.0020.01811.42
5.4.70.0030.01511.41
5.4.60.0020.01911.44
5.4.50.0030.01811.49
5.4.40.0070.01411.39
5.4.30.0050.01411.37
5.4.20.0030.02011.44
5.4.10.0030.01711.45
5.4.00.0040.01811.24
5.3.290.0110.04512.80
5.3.280.0040.04512.71
5.3.270.0050.04112.73
5.3.260.0060.04612.72
5.3.250.0060.03712.72
5.3.240.0060.03712.72
5.3.230.0050.03812.71
5.3.220.0080.03412.68
5.3.210.0040.04012.68
5.3.200.0050.03812.68
5.3.190.0060.03712.68
5.3.180.0060.03612.67
5.3.170.0040.03912.66
5.3.160.0050.03812.68
5.3.150.0040.04112.67
5.3.140.0080.03812.66
5.3.130.0060.04112.66
5.3.120.0040.04112.66
5.3.110.0060.03912.66
5.3.100.0110.03612.11
5.3.90.0060.03712.08
5.3.80.0060.03712.07
5.3.70.0050.03712.08
5.3.60.0050.03712.06
5.3.50.0040.03712.00
5.3.40.0080.03412.00
5.3.30.0080.03211.95
5.3.20.0050.04011.73
5.3.10.0050.03711.70
5.3.00.0070.03611.68
5.2.170.0060.0309.19
5.2.160.0030.0309.18
5.2.150.0060.0299.18
5.2.140.0060.0299.18
5.2.130.0020.0329.14
5.2.120.0090.0259.14
5.2.110.0050.0289.14
5.2.100.0050.0289.14
5.2.90.0050.0299.14
5.2.80.0070.0289.14
5.2.70.0080.0309.14
5.2.60.0050.0319.09
5.2.50.0040.0389.06
5.2.40.0050.0349.03
5.2.30.0030.0349.01
5.2.20.0040.0309.00
5.2.10.0020.0318.93
5.2.00.0030.0308.78
5.1.60.0070.0218.07
5.1.50.0060.0238.06
5.1.40.0060.0238.05
5.1.30.0060.0268.40
5.1.20.0060.0258.42
5.1.10.0060.0238.14
5.1.00.0060.0248.14
5.0.50.0040.0216.63
5.0.40.0030.0216.48
5.0.30.0020.0326.29
5.0.20.0030.0196.27
5.0.10.0030.0206.24
5.0.00.0050.0296.23
4.4.90.0020.0164.78
4.4.80.0040.0134.75
4.4.70.0040.0144.76
4.4.60.0010.0184.76
4.4.50.0020.0164.77
4.4.40.0040.0234.71
4.4.30.0020.0164.76
4.4.20.0010.0174.84
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0050.0134.66
4.3.100.0050.0134.66
4.3.90.0040.0134.63
4.3.80.0020.0264.59
4.3.70.0030.0154.63
4.3.60.0000.0174.63
4.3.50.0040.0154.63
4.3.40.0020.0264.54
4.3.30.0030.0163.29
4.3.20.0000.0193.26
4.3.10.0020.0173.22
4.3.00.0070.0206.73

preferences:
51.26 ms | 401 KiB | 5 Q