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 { class BetterFoo extends \Concrete\Foo\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.0090.00616.50
8.3.50.0110.00821.93
8.3.40.0090.00618.98
8.3.30.0070.00719.17
8.3.20.0050.00320.16
8.3.10.0000.00823.52
8.3.00.0000.00922.34
8.2.180.0150.00016.63
8.2.170.0120.00322.96
8.2.160.0100.00320.58
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.01126.16
8.2.120.0040.00422.30
8.2.110.0070.00321.05
8.2.100.0080.00417.78
8.2.90.0080.00019.05
8.2.80.0080.00018.04
8.2.70.0060.00717.63
8.2.60.0030.00517.80
8.2.50.0090.00018.07
8.2.40.0060.00318.09
8.2.30.0070.00018.10
8.2.20.0030.00617.66
8.2.10.0040.00417.69
8.2.00.0030.00517.75
8.1.280.0060.00925.92
8.1.270.0060.00323.86
8.1.260.0020.00526.35
8.1.250.0050.00228.09
8.1.240.0060.00319.31
8.1.230.0080.00320.85
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0070.00317.10
8.1.190.0030.00517.16
8.1.180.0050.00318.10
8.1.170.0040.00418.58
8.1.160.0040.00422.00
8.1.150.0030.00518.51
8.1.140.0040.00417.34
8.1.130.0000.00717.80
8.1.120.0000.00817.33
8.1.110.0000.00817.23
8.1.100.0000.00717.23
8.1.90.0000.00717.36
8.1.80.0070.00017.25
8.1.70.0000.00717.30
8.1.60.0030.00617.54
8.1.50.0080.00017.47
8.1.40.0040.00417.46
8.1.30.0000.00817.54
8.1.20.0040.00417.62
8.1.10.0060.00317.54
8.1.00.0070.00017.54
8.0.300.0070.00018.77
8.0.290.0030.00317.05
8.0.280.0070.00018.40
8.0.270.0080.00017.16
8.0.260.0040.00418.66
8.0.250.0030.00316.94
8.0.240.0000.00816.99
8.0.230.0040.00416.90
8.0.220.0030.00316.80
8.0.210.0000.00716.81
8.0.200.0000.00616.97
8.0.190.0040.00416.90
8.0.180.0000.00716.85
8.0.170.0050.00216.96
8.0.160.0070.00016.87
8.0.150.0070.00016.90
8.0.140.0000.00716.85
8.0.130.0030.00313.33
8.0.120.0000.00816.83
8.0.110.0040.00416.82
8.0.100.0040.00416.86
8.0.90.0040.00416.94
8.0.80.0060.00916.88
8.0.70.0040.00416.69
8.0.60.0050.00316.98
8.0.50.0040.00416.78
8.0.30.0100.00817.06
8.0.20.0130.00517.40
8.0.10.0040.00417.04
8.0.00.0080.00916.65
7.4.330.0000.00515.00
7.4.320.0040.00416.54
7.4.300.0070.00016.50
7.4.290.0000.00716.54
7.4.280.0030.00316.35
7.4.270.0000.00716.48
7.4.260.0030.00316.58
7.4.250.0000.00916.54
7.4.240.0020.00516.50
7.4.230.0000.00716.67
7.4.220.0100.01016.67
7.4.210.0070.00716.46
7.4.200.0030.00316.67
7.4.190.0070.00016.59
7.4.160.0080.01116.56
7.4.150.0030.01517.40
7.4.140.0080.00917.86
7.4.130.0070.01016.40
7.4.120.0080.00916.42
7.4.110.0060.01116.30
7.4.100.0030.01316.32
7.4.90.0090.00916.67
7.4.80.0030.01319.39
7.4.70.0100.01316.53
7.4.60.0060.01016.55
7.4.50.0030.00616.43
7.4.40.0100.00722.77
7.4.30.0060.00916.40
7.4.00.0030.01214.88
7.3.330.0030.00313.20
7.3.320.0030.00313.18
7.3.310.0030.00516.27
7.3.300.0070.00016.34
7.3.290.0090.00916.38
7.3.280.0100.00716.35
7.3.270.0090.00917.40
7.3.260.0110.00716.45
7.3.250.0080.01016.32
7.3.240.0090.00916.54
7.3.230.0090.00916.53
7.3.210.0150.00316.49
7.3.200.0150.00719.39
7.3.190.0120.00616.60
7.3.180.0100.00616.58
7.3.170.0160.00616.48
7.3.160.0110.01116.31
7.3.120.0030.01214.63
7.2.330.0070.01516.32
7.2.320.0060.00916.67
7.2.310.0120.00416.69
7.2.300.0140.00316.45
7.2.290.0130.00316.52
7.2.60.0100.00616.62
7.2.00.0060.00919.12
7.1.200.0060.00315.70
7.1.100.0030.01018.00
7.1.70.0000.00716.80
7.1.60.0110.01419.29
7.1.50.0270.01034.54
7.1.00.0070.07322.35
7.0.200.0090.00316.68
7.0.140.0030.07322.10
7.0.60.0070.07319.88
7.0.50.0070.07317.73
7.0.40.0170.05719.98
7.0.30.0230.07720.30
7.0.20.0230.06720.30
7.0.10.0330.07720.10
7.0.00.0100.07720.22
5.6.280.0030.07720.87
5.6.210.0070.03720.53
5.6.200.0070.08318.19
5.6.190.0070.06720.57
5.6.180.0070.04020.48
5.6.170.0270.05320.51
5.6.160.0200.07720.54
5.6.150.0070.03718.27
5.6.140.0000.05018.13
5.6.130.0100.05018.18
5.6.120.0130.08321.00
5.6.110.0130.08320.96
5.6.100.0200.05721.00
5.6.90.0130.08321.01
5.6.80.0070.05320.44
5.5.350.0130.07320.46
5.5.340.0100.07718.08
5.5.330.0030.08720.35
5.5.320.0070.08020.42
5.5.310.0330.03720.32
5.5.300.0030.05717.93
5.5.290.0070.07717.99
5.5.280.0070.05320.76
5.5.270.0100.05020.73
5.5.260.0100.06320.79
5.5.250.0130.07320.66
5.5.240.0070.07720.17
5.4.450.0570.03319.41
5.4.440.0570.06019.48
5.4.430.0630.05019.57
5.4.420.0600.05719.16
5.4.410.0470.06319.45
5.4.400.0700.06319.26
5.4.390.0270.06319.23
5.4.380.0170.05318.78
5.4.370.0200.05018.50
5.4.360.0130.05718.73
5.4.350.0030.06718.86
5.4.340.0130.05318.70
5.4.320.0050.03712.50
5.4.310.0080.04012.50
5.4.300.0070.04112.50
5.4.290.0090.04712.50
5.4.280.0090.05412.38
5.4.270.0090.06012.38
5.4.260.0070.05512.38
5.4.250.0090.05112.38
5.4.240.0110.05212.38
5.4.230.0100.05112.37
5.4.220.0100.04512.37
5.4.210.0100.05812.37
5.4.200.0090.05412.37
5.4.190.0110.04912.37
5.4.180.0140.04412.37
5.4.170.0100.06312.38
5.4.160.0090.03712.38
5.4.150.0110.04812.37
5.4.140.0110.03712.05
5.4.130.0070.05712.05
5.4.120.0100.04912.00
5.4.110.0040.05512.00
5.4.100.0170.10712.00
5.4.90.0120.05212.00
5.4.80.0050.04212.00
5.4.70.0110.04212.00
5.4.60.0050.04311.99
5.4.50.0060.04711.99
5.4.40.0140.04111.98
5.4.30.0070.03611.98
5.4.20.0050.03711.98
5.4.10.0080.03411.98
5.4.00.0070.05411.47
5.3.290.0080.04012.80
5.3.280.0060.07912.71
5.3.270.0040.04712.72
5.3.260.0040.04412.72
5.3.250.0050.04112.72
5.3.240.0050.04012.72
5.3.230.0080.03712.71
5.3.220.0040.04112.68
5.3.210.0060.04412.68
5.3.200.0110.04112.68
5.3.190.0110.04812.68
5.3.180.0070.06012.68
5.3.170.0150.05412.67
5.3.160.0180.08112.68
5.3.150.0120.06612.68
5.3.140.0090.06412.66
5.3.130.0120.06312.66
5.3.120.0090.06712.66
5.3.110.0050.07012.65
5.3.100.0170.07512.12
5.3.90.0090.09912.09
5.3.80.0070.07112.07
5.3.70.0060.06112.08
5.3.60.0180.07812.07
5.3.50.0120.05212.01
5.3.40.0130.06012.01
5.3.30.0090.04911.96
5.3.20.0080.05311.76
5.3.10.0060.05311.72
5.3.00.0130.04711.70
5.2.170.0050.0369.15
5.2.160.0110.0429.14
5.2.150.0060.0449.15
5.2.140.0070.0429.15
5.2.130.0060.0459.10
5.2.120.0060.0449.11
5.2.110.0030.0449.11
5.2.100.0170.0449.11
5.2.90.0070.0499.11
5.2.80.0070.0499.11
5.2.70.0070.0439.11
5.2.60.0050.0439.06
5.2.50.0080.0529.04
5.2.40.0050.0379.00
5.2.30.0030.0338.98
5.2.20.0040.0308.97
5.2.10.0040.0348.90
5.2.00.0050.0298.76
5.1.60.0060.0248.04
5.1.50.0030.0418.05
5.1.40.0060.0488.02
5.1.30.0080.0428.38
5.1.20.0050.0288.39
5.1.10.0030.0288.12
5.1.00.0040.0288.12
5.0.50.0020.0236.60
5.0.40.0070.0216.46
5.0.30.0040.0346.27
5.0.20.0030.0206.25
5.0.10.0050.0246.22
5.0.00.0070.0406.21
4.4.90.0060.0244.78
4.4.80.0060.0164.75
4.4.70.0020.0184.75
4.4.60.0030.0224.75
4.4.50.0070.0194.77
4.4.40.0030.0344.70
4.4.30.0030.0164.76
4.4.20.0030.0194.84
4.4.10.0070.0194.84
4.4.00.0020.0404.76
4.3.110.0040.0304.67
4.3.100.0040.0214.66
4.3.90.0030.0224.64
4.3.80.0030.0334.58
4.3.70.0030.0204.63
4.3.60.0060.0244.63
4.3.50.0070.0214.62
4.3.40.0050.0234.54
4.3.30.0020.0163.27
4.3.20.0030.0163.25
4.3.10.0020.0163.21
4.3.00.0070.01713.43

preferences:
48.8 ms | 401 KiB | 5 Q