3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Concrete\BetterFoo { use \Concrete\Foo\FooInterface; use \Concrete\Foo\Foo; class BetterFoo extends Foo implements FooInterface {} } namespace Concrete\Foo { class Foo implements FooInterface { public function Derp() {} } interface FooInterface { public function Derp(); } class_alias('\Concrete\Foo\Foo', 'DerpFoo'); } namespace Concrete\Test { use DerpFoo; class Test { public function __construct(Concrete\Foo\FooInterface $foo) {} } $f = new Test(new \Concrete\BetterFoo\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.60.0130.00316.75
8.3.50.0090.01421.94
8.3.40.0140.00018.79
8.3.30.0030.01019.27
8.3.20.0040.00420.16
8.3.10.0000.00723.60
8.3.00.0050.00222.45
8.2.180.0070.00716.63
8.2.170.0120.00322.96
8.2.160.0140.00020.44
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0100.00726.16
8.2.120.0040.00422.12
8.2.110.0080.00022.15
8.2.100.0090.00317.72
8.2.90.0000.00819.13
8.2.80.0050.00317.97
8.2.70.0060.00617.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0090.00018.22
8.2.30.0040.00417.99
8.2.20.0040.00417.54
8.2.10.0040.00417.68
8.2.00.0040.00417.81
8.1.280.0070.00725.92
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.63
8.1.230.0030.00919.23
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0000.00817.30
8.1.180.0030.00518.10
8.1.170.0050.00318.50
8.1.160.0000.00821.89
8.1.150.0000.00818.58
8.1.140.0040.00417.31
8.1.130.0070.00017.34
8.1.120.0000.00717.46
8.1.110.0040.00417.43
8.1.100.0040.00417.35
8.1.90.0070.00017.43
8.1.80.0050.00317.26
8.1.70.0030.00317.39
8.1.60.0000.00817.45
8.1.50.0040.00417.37
8.1.40.0000.00717.51
8.1.30.0040.00417.49
8.1.20.0080.00017.54
8.1.10.0040.00417.50
8.1.00.0000.00717.41
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0000.00718.46
8.0.270.0000.00717.25
8.0.260.0030.00316.79
8.0.250.0030.00317.05
8.0.240.0030.00316.98
8.0.230.0040.00417.03
8.0.220.0000.00716.96
8.0.210.0000.00716.89
8.0.200.0000.00716.91
8.0.190.0030.00516.98
8.0.180.0050.00217.01
8.0.170.0040.00416.86
8.0.160.0070.00016.92
8.0.150.0080.00016.90
8.0.140.0050.00216.85
8.0.130.0060.00013.43
8.0.120.0050.00316.83
8.0.110.0040.00416.94
8.0.100.0000.00716.75
8.0.90.0000.00716.75
8.0.80.0090.00616.86
8.0.70.0000.00716.96
8.0.60.0040.00416.82
8.0.50.0040.00416.97
8.0.30.0090.01117.16
8.0.20.0120.00617.40
8.0.10.0040.00417.06
8.0.00.0160.00216.71
7.4.330.0060.00015.09
7.4.320.0060.00016.53
7.4.300.0000.00616.55
7.4.290.0000.00616.45
7.4.280.0050.00216.34
7.4.270.0070.00016.54
7.4.260.0000.00716.41
7.4.250.0030.00716.45
7.4.240.0040.00416.50
7.4.230.0030.00316.36
7.4.220.0060.01216.50
7.4.210.0090.00916.44
7.4.200.0040.00416.54
7.4.190.0000.00716.40
7.4.160.0140.00716.38
7.4.150.0140.00717.40
7.4.140.0080.00817.86
7.4.130.0030.01316.61
7.4.120.0070.01416.51
7.4.110.0070.01016.43
7.4.100.0070.01016.48
7.4.90.0100.00716.59
7.4.80.0100.00719.39
7.4.70.0210.00416.33
7.4.60.0120.00616.51
7.4.50.0030.00516.52
7.4.40.0070.01022.77
7.4.30.0080.00816.38
7.4.00.0140.00414.95
7.3.330.0000.00513.32
7.3.320.0030.00313.30
7.3.310.0000.00616.20
7.3.300.0000.00616.24
7.3.290.0050.01516.25
7.3.280.0070.01016.30
7.3.270.0060.01217.40
7.3.260.0120.00416.53
7.3.250.0090.01016.38
7.3.240.0100.00716.32
7.3.230.0030.01316.39
7.3.210.0100.01016.32
7.3.200.0110.00619.39
7.3.190.0000.02216.21
7.3.180.0150.00016.38
7.3.170.0080.00816.44
7.3.160.0140.00316.40
7.3.120.0030.01014.66
7.2.330.0120.00616.58
7.2.320.0070.01016.52
7.2.310.0080.00816.54
7.2.300.0060.01216.61
7.2.290.0100.00716.46
7.2.00.0030.00619.05
7.1.200.0090.00615.45
7.1.100.0490.01015.85
7.1.70.0040.00416.87
7.1.60.0070.01819.29
7.1.50.0260.01334.66
7.1.00.0000.08022.54
7.0.200.0090.00616.70
7.0.140.0000.07722.15
7.0.60.0100.08319.82
7.0.50.0030.04017.91
7.0.40.0100.08020.14
7.0.30.0330.06720.21
7.0.20.0370.07320.12
7.0.10.0370.05720.08
7.0.00.0030.09020.23
5.6.280.0000.07720.89
5.6.210.0100.07020.52
5.6.200.0030.08018.22
5.6.190.0070.07020.39
5.6.180.0370.07020.47
5.6.170.0300.07720.55
5.6.160.0070.05020.48
5.6.150.0100.03318.18
5.6.140.0100.05018.18
5.6.130.0070.05018.18
5.6.120.0170.07320.98
5.6.110.0000.06721.13
5.6.100.0100.04021.14
5.6.90.0030.04721.13
5.6.80.0100.08020.49
5.6.70.0400.06020.39
5.5.350.0030.08720.44
5.5.340.0100.07717.99
5.5.330.0130.03320.28
5.5.320.0070.08020.27
5.5.310.0170.04020.29
5.5.300.0100.07318.04
5.5.290.0170.07317.98
5.5.280.0130.06720.63
5.5.270.0130.05020.69
5.5.260.0070.04020.68
5.5.250.0000.04320.69
5.5.240.0100.04020.17
5.4.450.0570.03719.42
5.4.440.0630.06319.61
5.4.430.0770.06719.47
5.4.420.0370.06319.38
5.4.410.0430.06319.30
5.4.400.0430.05019.13
5.4.390.0170.05019.27
5.4.380.0130.05018.54
5.4.370.0230.04718.80
5.4.360.0300.03318.71
5.4.350.0270.04018.57
5.4.340.0100.05718.52
5.4.320.0060.05212.51
5.4.310.0080.03712.51
5.4.300.0050.05612.51
5.4.290.0050.04012.51
5.4.280.0130.06912.39
5.4.270.0050.06112.39
5.4.260.0060.04112.38
5.4.250.0080.03912.39
5.4.240.0080.03812.39
5.4.230.0100.04012.38
5.4.220.0080.04012.38
5.4.210.0070.03912.38
5.4.200.0060.04112.38
5.4.190.0040.04212.38
5.4.180.0070.04212.37
5.4.170.0060.04012.38
5.4.160.0100.03712.38
5.4.150.0060.03912.38
5.4.140.0090.04912.05
5.4.130.0140.05912.05
5.4.120.0100.03912.01
5.4.110.0140.07212.00
5.4.100.0080.03712.00
5.4.90.0070.04312.00
5.4.80.0130.05112.00
5.4.70.0120.04812.00
5.4.60.0110.04411.99
5.4.50.0110.04312.00
5.4.40.0150.05611.98
5.4.30.0080.04611.98
5.4.20.0070.03811.98
5.4.10.0070.04111.98
5.4.00.0080.03711.47
5.3.290.0060.04912.80
5.3.280.0090.04112.71
5.3.270.0110.04412.72
5.3.260.0060.04712.72
5.3.250.0060.04312.72
5.3.240.0050.04612.72
5.3.230.0110.07612.71
5.3.220.0140.05812.68
5.3.210.0150.05112.68
5.3.200.0100.05412.68
5.3.190.0200.06412.68
5.3.180.0100.05712.68
5.3.170.0170.06812.67
5.3.160.0080.03912.68
5.3.150.0060.04112.67
5.3.140.0040.04312.66
5.3.130.0060.04412.66
5.3.120.0090.04512.66
5.3.110.0100.05412.65
5.3.100.0060.04112.12
5.3.90.0090.03712.09
5.3.80.0070.05312.08
5.3.70.0070.04212.08
5.3.60.0070.04612.07
5.3.50.0120.05612.02
5.3.40.0090.03612.02
5.3.30.0070.04111.98
5.3.20.0140.05211.76
5.3.10.0140.05211.71
5.3.00.0120.05611.71
5.2.170.0130.0599.16
5.2.160.0080.0479.15
5.2.150.0080.0759.15
5.2.140.0170.0609.16
5.2.130.0100.0659.11
5.2.120.0100.0369.11
5.2.110.0060.0379.12
5.2.100.0110.0469.12
5.2.90.0060.0369.11
5.2.80.0120.0619.11
5.2.70.0110.0609.11
5.2.60.0100.0589.06
5.2.50.0110.0519.03
5.2.40.0100.0659.00
5.2.30.0160.0548.98
5.2.20.0120.0498.98
5.2.10.0080.0378.90
5.2.00.0220.0608.77
5.1.60.0130.0458.05
5.1.50.0040.0398.04
5.1.40.0060.0358.03
5.1.30.0070.0518.38
5.1.20.0100.0368.40
5.1.10.0050.0268.12
5.1.00.0070.0248.12
5.0.50.0070.0186.59
5.0.40.0040.0196.46
5.0.30.0010.0356.27
5.0.20.0050.0246.24
5.0.10.0030.0216.23
5.0.00.0050.0316.21
4.4.90.0020.0174.78
4.4.80.0020.0174.75
4.4.70.0040.0154.76
4.4.60.0050.0154.75
4.4.50.0030.0174.77
4.4.40.0030.0274.71
4.4.30.0030.0174.76
4.4.20.0030.0174.85
4.4.10.0040.0164.85
4.4.00.0020.0274.76
4.3.110.0030.0174.67
4.3.100.0010.0184.66
4.3.90.0030.0164.63
4.3.80.0000.0284.58
4.3.70.0030.0164.63
4.3.60.0060.0134.63
4.3.50.0030.0174.63
4.3.40.0030.0264.54
4.3.30.0010.0193.27
4.3.20.0020.0173.25
4.3.10.0040.0153.21
4.3.00.0070.01713.43

preferences:
51.04 ms | 401 KiB | 5 Q