3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Concrete\Test { class Foo {} class_alias('\Concrete\Test\Foo', 'DerpFoo'); } namespace Concrete\BetterTest { use DerpFoo; class BetterFoo extends DerpFoo {} class Test { public function __construct(DerpFoo $foo) {} } $f = new Test(new BetterFoo); }

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.0110.00416.60
8.3.60.0100.01016.63
8.3.50.0100.00822.12
8.3.40.0070.00718.67
8.3.30.0110.00318.92
8.3.20.0030.00520.31
8.3.10.0000.00723.71
8.3.00.0080.00022.46
8.2.180.0000.01618.31
8.2.170.0060.00922.96
8.2.160.0100.00320.23
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0150.00326.16
8.2.120.0060.00322.09
8.2.110.0060.00322.20
8.2.100.0040.00817.91
8.2.90.0090.00019.23
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0000.00919.88
8.2.30.0070.00018.09
8.2.20.0030.00517.79
8.2.10.0040.00417.63
8.2.00.0030.00617.74
8.1.280.0170.00325.92
8.1.270.0060.00322.02
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.82
8.1.230.0090.00318.89
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0030.00617.53
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0050.00321.92
8.1.150.0050.00218.64
8.1.140.0040.00417.45
8.1.130.0030.00317.74
8.1.120.0040.00417.48
8.1.110.0040.00417.45
8.1.100.0030.00317.45
8.1.90.0000.00717.36
8.1.80.0030.00517.45
8.1.70.0000.00717.35
8.1.60.0030.00617.48
8.1.50.0000.00917.41
8.1.40.0000.00817.53
8.1.30.0040.00417.50
8.1.20.0030.00517.48
8.1.10.0060.00317.52
8.1.00.0040.00417.42
8.0.300.0030.00518.77
8.0.290.0040.00417.28
8.0.280.0040.00418.46
8.0.270.0000.00717.25
8.0.260.0070.00016.93
8.0.250.0030.00316.96
8.0.240.0070.00016.93
8.0.230.0030.00317.02
8.0.220.0030.00416.85
8.0.210.0040.00416.97
8.0.200.0040.00416.88
8.0.190.0020.00517.06
8.0.180.0000.00717.01
8.0.170.0040.00417.01
8.0.160.0070.00016.91
8.0.150.0070.00016.91
8.0.140.0040.00416.89
8.0.130.0060.00013.39
8.0.120.0030.00516.96
8.0.110.0040.00416.99
8.0.100.0050.00316.98
8.0.90.0000.00716.91
8.0.80.0030.01616.94
8.0.70.0040.00417.07
8.0.60.0050.00316.79
8.0.50.0000.00816.80
8.0.30.0150.00417.06
8.0.20.0160.00317.40
8.0.10.0000.00716.97
8.0.00.0120.00916.79
7.4.330.0000.00515.00
7.4.320.0000.00616.37
7.4.300.0000.00616.61
7.4.290.0070.00016.53
7.4.280.0040.00416.57
7.4.270.0030.00316.61
7.4.260.0000.00716.48
7.4.250.0000.00816.43
7.4.240.0040.00416.52
7.4.230.0040.00416.66
7.4.220.0090.00916.54
7.4.210.0050.00916.53
7.4.200.0030.00316.44
7.4.190.0040.00416.68
7.4.160.0070.01716.48
7.4.150.0100.00717.40
7.4.140.0150.00517.86
7.4.130.0070.01016.43
7.4.120.0090.01416.42
7.4.110.0060.01216.43
7.4.100.0070.01316.39
7.4.90.0070.01416.41
7.4.80.0070.01119.39
7.4.70.0130.00316.61
7.4.60.0090.00616.57
7.4.50.0090.00016.40
7.4.40.0000.01622.77
7.4.30.0030.01416.60
7.4.00.0030.01415.15
7.3.330.0070.00013.26
7.3.320.0030.00313.19
7.3.310.0000.00716.30
7.3.300.0000.00816.30
7.3.290.0150.00316.29
7.3.280.0100.00816.33
7.3.270.0140.00317.40
7.3.260.0120.00616.33
7.3.250.0100.01016.25
7.3.240.0000.01616.40
7.3.230.0090.00916.54
7.3.210.0100.01016.16
7.3.200.0060.01219.39
7.3.190.0210.00316.16
7.3.180.0060.00916.34
7.3.170.0120.00316.29
7.3.160.0100.00616.63
7.3.120.0070.00714.72
7.2.330.0110.00616.68
7.2.320.0090.01516.66
7.2.310.0060.01016.78
7.2.300.0090.00916.56
7.2.290.0110.00516.74
7.2.80.0060.00616.46
7.2.60.0230.00316.51
7.2.00.0000.01419.14
7.1.200.0170.00514.89
7.1.100.0040.00818.21
7.1.70.0100.00016.71
7.1.60.0000.02119.29
7.1.50.0100.00716.57
7.1.00.0000.07322.28
7.0.200.0070.00416.75
7.0.140.0100.06721.95
7.0.60.0200.04320.02
7.0.50.0000.05317.86
7.0.40.0130.08320.25
7.0.30.0330.05020.30
7.0.20.0200.04320.22
7.0.10.0170.04320.06
7.0.00.0030.08020.25
5.6.280.0030.07321.13
5.6.210.0070.06720.51
5.6.200.0000.04318.29
5.6.190.0030.04320.64
5.6.180.0000.09020.52
5.6.170.0200.04720.52
5.6.160.0070.05020.57
5.6.150.0030.08718.14
5.6.140.0070.08018.15
5.6.130.0070.06018.28
5.6.120.0030.04021.00
5.6.110.0030.04021.05
5.6.100.0130.03720.98
5.6.90.0170.06320.98
5.6.80.0030.06020.51
5.5.350.0030.04020.34
5.5.340.0030.08718.01
5.5.330.0030.08020.30
5.5.320.0000.07320.29
5.5.310.0300.07020.27
5.5.300.0030.04317.95
5.5.290.0030.06317.95
5.5.280.0100.09020.77
5.5.270.0100.06720.80
5.5.260.0070.07320.80
5.5.250.0100.07020.54
5.5.240.0070.07020.35
5.4.450.0500.03719.41
5.4.440.0730.05719.16
5.4.430.0130.05319.69
5.4.420.0630.05019.63
5.4.410.0800.05319.34
5.4.400.0600.05019.13
5.4.390.0630.06019.24
5.4.380.0130.05318.60
5.4.370.0200.04718.57
5.4.360.0130.05018.46
5.4.350.0130.05718.84
5.4.340.0130.05718.75
5.4.320.0050.04212.50
5.4.310.0100.03812.50
5.4.300.0050.03912.50
5.4.290.0070.04412.50
5.4.280.0090.05012.37
5.4.270.0100.04712.37
5.4.260.0090.05212.37
5.4.250.0080.05812.37
5.4.240.0070.05212.37
5.4.230.0050.05312.36
5.4.220.0060.05112.36
5.4.210.0050.05212.36
5.4.200.0100.04312.36
5.4.190.0080.03412.36
5.4.180.0060.05312.36
5.4.170.0060.05212.37
5.4.160.0110.04812.36
5.4.150.0060.03712.36
5.4.140.0060.04112.05
5.4.130.0080.05012.03
5.4.120.0080.05211.99
5.4.110.0080.05511.98
5.4.100.0060.05011.98
5.4.90.0110.04811.98
5.4.80.0140.04511.98
5.4.70.0100.04711.98
5.4.60.0120.04511.98
5.4.50.0080.05011.98
5.4.40.0090.03411.97
5.4.30.0060.05111.97
5.4.20.0160.04411.97
5.4.10.0050.05411.96
5.4.00.0080.05411.46
5.3.290.0100.04212.80
5.3.280.0130.04812.71
5.3.270.0080.04012.73
5.3.260.0060.04612.72
5.3.250.0080.04212.72
5.3.240.0070.05312.71
5.3.230.0090.04912.71
5.3.220.0070.03612.68
5.3.210.0130.04912.68
5.3.200.0090.04912.68
5.3.190.0080.05212.68
5.3.180.0130.04212.68
5.3.170.0060.04812.67
5.3.160.0100.04912.67
5.3.150.0100.05712.67
5.3.140.0080.05412.66
5.3.130.0080.04812.66
5.3.120.0110.04412.66
5.3.110.0070.04012.66
5.3.100.0040.04112.12
5.3.90.0060.03712.09
5.3.80.0060.05212.08
5.3.70.0160.04412.07
5.3.60.0110.05212.06
5.3.50.0090.03812.00
5.3.40.0050.05312.00
5.3.30.0140.06011.95
5.3.20.0090.04711.74
5.3.10.0110.04911.71
5.3.00.0060.05111.70
5.2.170.0050.0439.15
5.2.160.0070.0399.14
5.2.150.0020.0379.15
5.2.140.0070.0299.15
5.2.130.0040.0329.11
5.2.120.0040.0449.11
5.2.110.0040.0329.11
5.2.100.0060.0409.11
5.2.90.0050.0319.11
5.2.80.0010.0369.11
5.2.70.0070.0299.11
5.2.60.0040.0349.06
5.2.50.0070.0299.03
5.2.40.0050.0329.00
5.2.30.0030.0368.98
5.2.20.0050.0338.97
5.2.10.0090.0348.90
5.2.00.0070.0428.76
5.1.60.0060.0348.04
5.1.50.0020.0378.04
5.1.40.0070.0338.03
5.1.30.0070.0308.37
5.1.20.0050.0298.39
5.1.10.0050.0288.12
5.1.00.0060.0268.12
5.0.50.0030.0236.60
5.0.40.0060.0196.46
5.0.30.0040.0326.27
5.0.20.0040.0216.24
5.0.10.0050.0206.22
5.0.00.0050.0356.21
4.4.90.0030.0174.78
4.4.80.0030.0174.75
4.4.70.0050.0154.75
4.4.60.0040.0154.75
4.4.50.0020.0174.77
4.4.40.0030.0274.71
4.4.30.0020.0174.76
4.4.20.0020.0174.85
4.4.10.0040.0154.84
4.4.00.0040.0314.76
4.3.110.0040.0234.67
4.3.100.0030.0344.66
4.3.90.0040.0274.64
4.3.80.0010.0354.59
4.3.70.0030.0174.63
4.3.60.0050.0124.63
4.3.50.0050.0214.63
4.3.40.0030.0244.54
4.3.30.0020.0173.27
4.3.20.0030.0203.25
4.3.10.0020.0223.21
4.3.00.0070.02013.43

preferences:
38.15 ms | 401 KiB | 5 Q