3v4l.org

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

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.0000.01518.55
8.3.50.0120.00322.00
8.3.40.0070.00718.79
8.3.30.0110.00418.99
8.3.20.0040.00420.16
8.3.10.0080.00023.61
8.3.00.0070.00022.34
8.2.180.0120.00316.63
8.2.170.0040.01122.96
8.2.160.0100.00720.55
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0110.00726.16
8.2.120.0040.00422.08
8.2.110.0090.00022.08
8.2.100.0100.00317.91
8.2.90.0050.00219.05
8.2.80.0030.00617.97
8.2.70.0050.00517.38
8.2.60.0000.00817.68
8.2.50.0050.00318.07
8.2.40.0000.00718.22
8.2.30.0060.00317.91
8.2.20.0030.00517.65
8.2.10.0000.00819.40
8.2.00.0000.00717.73
8.1.280.0060.01025.92
8.1.270.0050.00323.84
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0040.00423.91
8.1.230.0070.00419.11
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00917.50
8.1.180.0040.00418.10
8.1.170.0030.00618.51
8.1.160.0000.00821.86
8.1.150.0000.00718.53
8.1.140.0000.00717.32
8.1.130.0030.00317.79
8.1.120.0000.00717.34
8.1.110.0080.00017.23
8.1.100.0000.00717.31
8.1.90.0000.00717.22
8.1.80.0030.00317.32
8.1.70.0000.00717.21
8.1.60.0040.00417.47
8.1.50.0030.00517.49
8.1.40.0000.00717.34
8.1.30.0000.00817.43
8.1.20.0040.00417.47
8.1.10.0030.00517.47
8.1.00.0070.00017.46
8.0.300.0000.00718.77
8.0.290.0000.00716.80
8.0.280.0030.00318.32
8.0.270.0070.00017.18
8.0.260.0000.00716.88
8.0.250.0000.00616.93
8.0.240.0000.00716.88
8.0.230.0030.00316.94
8.0.220.0040.00416.88
8.0.210.0030.00316.88
8.0.200.0060.00316.96
8.0.190.0060.00316.84
8.0.180.0050.00316.89
8.0.170.0050.00316.93
8.0.160.0000.00717.01
8.0.150.0000.00816.83
8.0.140.0050.00216.71
8.0.130.0000.00513.28
8.0.120.0000.00816.76
8.0.110.0050.00316.72
8.0.100.0000.00716.86
8.0.90.0040.00416.71
8.0.80.0060.00916.88
8.0.70.0040.00416.91
8.0.60.0000.00716.70
8.0.50.0000.00716.75
8.0.30.0080.01116.96
8.0.20.0050.01317.40
8.0.10.0000.00717.04
8.0.00.0070.01216.68
7.4.330.0020.00215.00
7.4.320.0000.00616.39
7.4.300.0040.00416.39
7.4.290.0070.00016.53
7.4.280.0050.00216.54
7.4.270.0070.00016.53
7.4.260.0000.00716.32
7.4.250.0090.00016.36
7.4.240.0050.00316.50
7.4.230.0040.00416.29
7.4.220.0150.00316.52
7.4.210.0090.00716.50
7.4.200.0080.00016.48
7.4.190.0000.00816.54
7.4.160.0100.00616.50
7.4.150.0100.00717.40
7.4.140.0110.01017.86
7.4.130.0080.00916.42
7.4.120.0060.01216.42
7.4.110.0030.01516.54
7.4.100.0090.01416.55
7.4.90.0100.00716.28
7.4.80.0100.00819.39
7.4.70.0080.00816.49
7.4.60.0030.01616.39
7.4.50.0070.00016.58
7.4.40.0060.00622.77
7.4.30.0080.00816.57
7.4.00.0060.00315.08
7.3.330.0030.00313.43
7.3.320.0050.00013.38
7.3.310.0040.00416.40
7.3.300.0030.00316.34
7.3.290.0100.01016.37
7.3.280.0090.01116.37
7.3.270.0030.01417.40
7.3.260.0130.00416.47
7.3.250.0120.01016.49
7.3.240.0100.00716.49
7.3.230.0030.01616.52
7.3.210.0080.00916.49
7.3.200.0080.01119.39
7.3.190.0100.00716.61
7.3.180.0080.00816.37
7.3.170.0070.01416.45
7.3.160.0100.01316.44
7.3.120.0030.01315.01
7.2.330.0110.00616.50
7.2.320.0030.01316.26
7.2.310.0060.01516.59
7.2.300.0110.01116.49
7.2.290.0140.00516.59
7.2.80.0100.00316.31
7.2.60.0040.01216.80
7.2.00.0000.01119.09
7.1.200.0030.00715.57
7.1.100.0060.00617.93
7.1.70.0000.01316.99
7.1.60.0070.01719.29
7.1.50.0260.01334.74
7.1.00.0000.07722.51
7.0.200.0060.00916.66
7.0.140.0030.07322.00
7.0.60.0170.03319.97
7.0.50.0130.08017.86
7.0.40.0030.08320.22
7.0.30.0130.04720.06
7.0.20.0370.07320.05
7.0.10.0100.08320.36
7.0.00.0070.08720.19
5.6.280.0030.07321.10
5.6.210.0170.06720.57
5.6.200.0070.04718.16
5.6.190.0070.05020.48
5.6.180.0370.07720.33
5.6.170.0200.06020.48
5.6.160.0070.04720.61
5.6.150.0130.08018.27
5.6.140.0170.04018.18
5.6.130.0130.03318.15
5.6.120.0070.08321.01
5.6.110.0070.08320.97
5.6.100.0100.04320.98
5.6.90.0100.06320.96
5.6.80.0100.05720.48
5.6.70.0070.07020.34
5.5.350.0070.08720.47
5.5.340.0100.07317.94
5.5.330.0030.07020.26
5.5.320.0100.04720.38
5.5.310.0330.06320.30
5.5.300.0030.09017.99
5.5.290.0170.07317.93
5.5.280.0100.07020.88
5.5.270.0100.08020.65
5.5.260.0100.07320.88
5.5.250.0130.07320.76
5.5.240.0100.07020.20
5.4.450.0930.05719.54
5.4.440.0700.06319.63
5.4.430.0130.05019.58
5.4.420.0900.05319.70
5.4.410.0730.05319.03
5.4.400.0300.05319.20
5.4.390.0100.05319.06
5.4.380.0270.04018.84
5.4.370.0200.04718.56
5.4.360.0200.05018.59
5.4.350.0100.06018.61
5.4.340.0170.05318.73
5.4.320.0050.04012.50
5.4.310.0070.04112.49
5.4.300.0030.03912.50
5.4.290.0070.03512.50
5.4.280.0070.04112.38
5.4.270.0130.04512.38
5.4.260.0090.05512.38
5.4.250.0110.04612.38
5.4.240.0080.04312.38
5.4.230.0070.05112.38
5.4.220.0080.04912.38
5.4.210.0050.05612.37
5.4.200.0080.04612.37
5.4.190.0180.06712.37
5.4.180.0110.05612.36
5.4.170.0150.06012.38
5.4.160.0140.04512.38
5.4.150.0080.04812.37
5.4.140.0100.04712.05
5.4.130.0070.05012.04
5.4.120.0110.04912.00
5.4.110.0090.04812.00
5.4.100.0060.04812.00
5.4.90.0070.05011.99
5.4.80.0080.04412.00
5.4.70.0070.04212.00
5.4.60.0110.04611.99
5.4.50.0090.04311.99
5.4.40.0090.04711.98
5.4.30.0100.03511.98
5.4.20.0060.04411.98
5.4.10.0050.04311.98
5.4.00.0090.03711.47
5.3.290.0050.04212.80
5.3.280.0050.04412.71
5.3.270.0070.04212.73
5.3.260.0090.03812.72
5.3.250.0070.03512.72
5.3.240.0040.03912.72
5.3.230.0060.04612.71
5.3.220.0060.04512.68
5.3.210.0090.05912.68
5.3.200.0100.05012.68
5.3.190.0080.04912.68
5.3.180.0080.05112.67
5.3.170.0070.05112.66
5.3.160.0050.05112.67
5.3.150.0080.05112.68
5.3.140.0110.04812.66
5.3.130.0040.05612.66
5.3.120.0110.07912.66
5.3.110.0060.05712.66
5.3.100.0060.04912.12
5.3.90.0120.04512.09
5.3.80.0100.04512.08
5.3.70.0070.04812.07
5.3.60.0100.03812.06
5.3.50.0060.03912.01
5.3.40.0070.03812.01
5.3.30.0150.04511.96
5.3.20.0060.04911.76
5.3.10.0090.04911.71
5.3.00.0060.05511.71
5.2.170.0050.0379.16
5.2.160.0080.0309.15
5.2.150.0060.0329.15
5.2.140.0060.0369.15
5.2.130.0040.0329.11
5.2.120.0050.0339.11
5.2.110.0090.0359.12
5.2.100.0040.0409.11
5.2.90.0070.0369.11
5.2.80.0080.0389.11
5.2.70.0100.0419.11
5.2.60.0070.0369.06
5.2.50.0110.0339.03
5.2.40.0070.0309.01
5.2.30.0090.0328.98
5.2.20.0040.0418.97
5.2.10.0080.0368.90
5.2.00.0080.0428.76
5.1.60.0060.0358.04
5.1.50.0100.0308.04
5.1.40.0070.0348.03
5.1.30.0080.0358.38
5.1.20.0070.0388.40
5.1.10.0100.0328.12
5.1.00.0090.0498.13
5.0.50.0140.0506.60
5.0.40.0060.0566.45
5.0.30.0040.0576.27
5.0.20.0090.0286.25
5.0.10.0100.0306.22
5.0.00.0070.0596.21
4.4.90.0050.0244.78
4.4.80.0030.0234.76
4.4.70.0070.0164.75
4.4.60.0070.0194.75
4.4.50.0050.0214.77
4.4.40.0020.0354.71
4.4.30.0070.0184.76
4.4.20.0020.0244.84
4.4.10.0020.0244.85
4.4.00.0030.0344.75
4.3.110.0020.0244.67
4.3.100.0050.0214.67
4.3.90.0070.0214.63
4.3.80.0070.0334.59
4.3.70.0020.0254.63
4.3.60.0060.0214.63
4.3.50.0040.0234.63
4.3.40.0050.0344.54
4.3.30.0030.0223.27
4.3.20.0030.0163.25
4.3.10.0020.0173.22
4.3.00.0100.01713.43

preferences:
43.63 ms | 401 KiB | 5 Q