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; 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.01516.50
8.3.50.0110.00821.95
8.3.40.0110.00418.86
8.3.30.0070.00718.96
8.3.20.0070.00020.21
8.3.10.0040.00423.66
8.3.00.0080.00022.34
8.2.180.0120.00316.50
8.2.170.0120.00322.96
8.2.160.0120.00318.90
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.01126.16
8.2.120.0030.00622.21
8.2.110.0050.00522.05
8.2.100.0120.00017.78
8.2.90.0000.00718.98
8.2.80.0000.00817.97
8.2.70.0060.00617.63
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0000.00718.09
8.2.30.0040.00417.98
8.2.20.0020.00517.63
8.2.10.0000.00717.66
8.2.00.0050.00317.66
8.1.280.0180.00625.92
8.1.270.0060.00323.84
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00923.87
8.1.230.0080.00419.07
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00917.23
8.1.190.0080.00017.41
8.1.180.0090.00018.10
8.1.170.0060.00318.52
8.1.160.0000.00722.05
8.1.150.0040.00418.42
8.1.140.0000.00717.32
8.1.130.0030.00317.82
8.1.120.0030.00317.25
8.1.110.0040.00417.30
8.1.100.0040.00417.21
8.1.90.0040.00417.30
8.1.80.0070.00017.21
8.1.70.0000.00717.23
8.1.60.0000.00917.41
8.1.50.0040.00417.46
8.1.40.0000.00817.41
8.1.30.0000.00817.51
8.1.20.0040.00417.45
8.1.10.0080.00017.48
8.1.00.0070.00017.30
8.0.300.0070.00018.77
8.0.290.0050.00217.18
8.0.280.0000.00818.28
8.0.270.0030.00317.17
8.0.260.0070.00016.75
8.0.250.0040.00416.98
8.0.240.0000.00716.86
8.0.230.0000.00816.98
8.0.220.0030.00516.85
8.0.210.0000.00716.88
8.0.200.0030.00316.84
8.0.190.0040.00416.85
8.0.180.0000.00716.92
8.0.170.0040.00416.94
8.0.160.0070.00016.88
8.0.150.0050.00216.89
8.0.140.0030.00316.88
8.0.130.0030.00313.30
8.0.120.0000.00816.85
8.0.110.0040.00416.91
8.0.100.0000.00816.77
8.0.90.0040.00416.70
8.0.80.0070.00716.84
8.0.70.0020.00516.93
8.0.60.0070.00016.94
8.0.50.0040.00416.83
8.0.30.0140.00816.89
8.0.20.0080.01317.40
8.0.10.0000.00816.93
8.0.00.0110.00816.87
7.4.330.0050.00015.00
7.4.320.0000.00716.45
7.4.300.0060.00016.52
7.4.290.0000.00716.39
7.4.280.0040.00416.38
7.4.270.0050.00216.46
7.4.260.0000.00716.43
7.4.250.0050.00416.41
7.4.240.0040.00416.52
7.4.230.0030.00316.26
7.4.220.0120.00616.42
7.4.210.0090.00816.39
7.4.200.0000.00716.28
7.4.190.0040.00416.30
7.4.160.0090.00616.64
7.4.150.0100.00717.40
7.4.140.0110.00717.86
7.4.130.0130.00516.48
7.4.120.0120.00516.44
7.4.110.0120.00616.37
7.4.100.0090.01316.42
7.4.90.0070.01016.55
7.4.80.0100.00719.39
7.4.70.0070.01516.34
7.4.60.0100.00716.37
7.4.50.0040.00016.07
7.4.40.0090.00922.77
7.4.30.0000.01616.65
7.4.00.0120.00314.84
7.3.330.0000.00613.25
7.3.320.0060.00013.20
7.3.310.0040.00416.41
7.3.300.0030.00316.34
7.3.290.0060.01416.37
7.3.280.0080.01116.38
7.3.270.0120.00617.40
7.3.260.0130.00316.37
7.3.250.0120.00616.44
7.3.240.0140.00916.60
7.3.230.0130.00716.48
7.3.210.0160.00416.38
7.3.200.0120.01219.39
7.3.190.0130.01016.42
7.3.180.0100.00616.55
7.3.170.0100.00716.34
7.3.160.0140.00716.31
7.3.120.0060.01214.77
7.2.330.0140.00516.29
7.2.320.0030.01316.46
7.2.310.0160.00016.55
7.2.300.0100.00716.60
7.2.290.0090.00816.57
7.2.60.0100.00716.58
7.2.00.0030.00919.22
7.1.200.0040.00815.50
7.1.100.0030.00917.85
7.1.70.0000.01416.59
7.1.60.0070.01719.29
7.1.50.0140.01834.63
7.1.00.0030.07722.27
7.0.200.0030.00716.65
7.0.140.0000.07722.07
7.0.60.0070.05319.91
7.0.50.0030.05717.88
7.0.40.0100.04320.20
7.0.30.0270.08320.15
7.0.20.0370.07020.07
7.0.10.0270.07720.33
7.0.00.0130.08320.16
5.6.280.0070.07021.07
5.6.210.0100.03320.53
5.6.200.0070.05318.19
5.6.190.0000.04720.47
5.6.180.0070.08720.55
5.6.170.0370.04720.50
5.6.160.0170.04320.44
5.6.150.0000.06018.15
5.6.140.0100.04018.23
5.6.130.0100.07318.17
5.6.120.0230.07020.98
5.6.110.0100.06320.98
5.6.100.0030.04321.11
5.6.90.0100.08320.96
5.6.80.0130.07020.53
5.6.70.0300.06020.37
5.5.350.0000.05720.38
5.5.340.0070.07017.92
5.5.330.0100.07020.57
5.5.320.0100.04320.20
5.5.310.0300.07720.49
5.5.300.0000.08717.92
5.5.290.0030.04318.01
5.5.280.0070.08320.80
5.5.270.0070.08320.80
5.5.260.0100.08020.87
5.5.250.0070.03720.68
5.5.240.0130.07320.29
5.4.450.1230.05319.59
5.4.440.0730.05019.30
5.4.430.0430.07319.59
5.4.420.0730.06319.55
5.4.410.0600.06319.52
5.4.400.0900.04719.16
5.4.390.0600.05718.98
5.4.380.0170.05018.63
5.4.370.0070.06318.59
5.4.360.0230.04318.74
5.4.350.0270.05718.79
5.4.340.0170.05718.75
5.4.320.0050.03812.50
5.4.310.0060.03912.50
5.4.300.0060.04212.50
5.4.290.0060.03812.49
5.4.280.0070.05312.38
5.4.270.0100.04912.38
5.4.260.0090.05412.38
5.4.250.0090.05112.38
5.4.240.0060.05312.38
5.4.230.0070.05312.37
5.4.220.0040.05512.37
5.4.210.0060.05212.37
5.4.200.0080.05212.37
5.4.190.0080.05112.36
5.4.180.0050.05412.37
5.4.170.0090.05012.38
5.4.160.0070.04912.38
5.4.150.0110.04612.38
5.4.140.0050.05512.05
5.4.130.0070.04912.05
5.4.120.0040.05412.00
5.4.110.0070.05111.99
5.4.100.0070.04812.00
5.4.90.0110.04812.00
5.4.80.0060.05312.00
5.4.70.0060.05111.99
5.4.60.0150.04312.00
5.4.50.0080.05211.99
5.4.40.0040.05311.98
5.4.30.0080.04911.98
5.4.20.0080.05111.98
5.4.10.0080.04911.98
5.4.00.0050.05311.46
5.3.290.0040.04112.80
5.3.280.0110.06112.71
5.3.270.0050.06212.73
5.3.260.0070.05712.72
5.3.250.0100.05412.72
5.3.240.0060.05612.72
5.3.230.0070.05212.71
5.3.220.0050.05612.68
5.3.210.0120.05112.68
5.3.200.0110.05012.68
5.3.190.0070.05212.68
5.3.180.0120.05012.68
5.3.170.0070.05512.67
5.3.160.0050.05612.67
5.3.150.0100.05312.68
5.3.140.0070.05512.66
5.3.130.0080.05712.66
5.3.120.0060.05812.66
5.3.110.0140.05012.66
5.3.100.0100.05812.12
5.3.90.0070.05312.09
5.3.80.0090.05012.08
5.3.70.0070.05212.07
5.3.60.0090.05512.07
5.3.50.0080.05012.01
5.3.40.0090.05012.01
5.3.30.0120.04811.96
5.3.20.0060.05211.76
5.3.10.0080.05111.71
5.3.00.0100.05111.71
5.2.170.0070.0449.15
5.2.160.0050.0459.15
5.2.150.0080.0439.15
5.2.140.0060.0449.15
5.2.130.0090.0419.11
5.2.120.0060.0429.11
5.2.110.0060.0429.12
5.2.100.0070.0419.12
5.2.90.0070.0429.11
5.2.80.0080.0429.11
5.2.70.0110.0399.11
5.2.60.0110.0559.06
5.2.50.0080.0449.03
5.2.40.0040.0429.00
5.2.30.0080.0388.98
5.2.20.0040.0378.97
5.2.10.0080.0358.90
5.2.00.0060.0378.76
5.1.60.0070.0298.04
5.1.50.0050.0318.04
5.1.40.0050.0338.03
5.1.30.0020.0308.37
5.1.20.0040.0278.40
5.1.10.0030.0348.12
5.1.00.0010.0308.12
5.0.50.0040.0216.59
5.0.40.0040.0196.46
5.0.30.0030.0326.27
5.0.20.0030.0216.25
5.0.10.0020.0226.22
5.0.00.0050.0296.21
4.4.90.0060.0124.78
4.4.80.0030.0154.75
4.4.70.0060.0124.76
4.4.60.0020.0184.75
4.4.50.0040.0184.77
4.4.40.0010.0264.71
4.4.30.0060.0144.76
4.4.20.0020.0184.85
4.4.10.0030.0234.85
4.4.00.0020.0274.76
4.3.110.0040.0224.67
4.3.100.0060.0194.66
4.3.90.0070.0284.63
4.3.80.0040.0324.58
4.3.70.0030.0214.63
4.3.60.0050.0144.63
4.3.50.0020.0184.63
4.3.40.0040.0254.54
4.3.30.0030.0163.27
4.3.20.0000.0193.25
4.3.10.0020.0173.21
4.3.00.0300.01713.43

preferences:
54.62 ms | 401 KiB | 5 Q