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 \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.0110.00416.88
8.3.50.0090.00622.04
8.3.40.0070.00718.79
8.3.30.0120.00318.92
8.3.20.0040.00420.16
8.3.10.0030.00523.61
8.3.00.0030.00522.34
8.2.180.0070.01716.60
8.2.170.0120.00322.96
8.2.160.0070.00720.49
8.2.150.0110.00424.18
8.2.140.0030.00624.66
8.2.130.0110.00726.16
8.2.120.0000.00722.25
8.2.110.0040.00422.08
8.2.100.0040.00817.91
8.2.90.0040.00418.98
8.2.80.0060.00317.97
8.2.70.0070.00417.63
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0040.00418.09
8.2.30.0000.00718.11
8.2.20.0000.00817.76
8.2.10.0040.00417.75
8.2.00.0030.00517.59
8.1.280.0060.00925.92
8.1.270.0060.00323.98
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00623.66
8.1.230.0080.00318.89
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0100.00017.23
8.1.190.0000.00817.53
8.1.180.0000.00818.10
8.1.170.0060.00318.52
8.1.160.0040.00421.98
8.1.150.0040.00418.43
8.1.140.0040.00417.32
8.1.130.0030.00317.68
8.1.120.0030.00317.40
8.1.110.0080.00017.30
8.1.100.0030.00317.35
8.1.90.0050.00217.31
8.1.80.0000.00717.35
8.1.70.0000.00717.29
8.1.60.0040.00417.52
8.1.50.0040.00417.34
8.1.40.0000.00717.44
8.1.30.0030.00617.53
8.1.20.0000.00817.53
8.1.10.0030.00517.52
8.1.00.0040.00417.54
8.0.300.0020.00518.77
8.0.290.0000.00716.93
8.0.280.0030.00318.39
8.0.270.0040.00417.19
8.0.260.0000.00716.83
8.0.250.0080.00016.85
8.0.240.0040.00416.97
8.0.230.0000.00816.88
8.0.220.0030.00316.90
8.0.210.0030.00316.82
8.0.200.0000.00816.82
8.0.190.0000.00716.87
8.0.180.0030.00516.86
8.0.170.0020.00516.93
8.0.160.0030.00316.90
8.0.150.0030.00316.80
8.0.140.0080.00016.86
8.0.130.0030.00313.31
8.0.120.0000.00816.80
8.0.110.0030.00316.82
8.0.100.0000.00716.84
8.0.90.0040.00416.71
8.0.80.0000.01616.86
8.0.70.0040.00416.84
8.0.60.0040.00416.71
8.0.50.0040.00416.89
8.0.30.0100.01017.10
8.0.20.0130.00817.40
8.0.10.0000.00716.82
8.0.00.0150.00616.67
7.4.330.0050.00015.00
7.4.320.0040.00416.43
7.4.300.0060.00016.53
7.4.290.0060.00016.42
7.4.280.0030.00516.44
7.4.270.0030.00316.34
7.4.260.0000.00816.49
7.4.250.0000.00816.39
7.4.240.0040.00416.42
7.4.230.0030.00316.61
7.4.220.0130.00616.40
7.4.210.0110.00516.54
7.4.200.0050.00216.35
7.4.190.0070.00016.43
7.4.160.0070.01016.54
7.4.150.0110.00717.40
7.4.140.0070.01117.86
7.4.130.0070.01016.53
7.4.120.0080.00816.40
7.4.110.0120.00416.54
7.4.100.0070.01016.30
7.4.90.0040.01516.50
7.4.80.0100.01319.39
7.4.70.0110.00516.43
7.4.60.0090.01316.66
7.4.50.0000.00916.24
7.4.40.0060.00922.77
7.4.30.0080.00816.36
7.4.00.0070.00714.64
7.3.330.0000.00513.38
7.3.320.0060.00013.35
7.3.310.0020.00516.27
7.3.300.0060.00016.23
7.3.290.0130.00716.41
7.3.280.0080.00916.29
7.3.270.0080.00817.40
7.3.260.0150.00316.42
7.3.250.0070.01016.28
7.3.240.0100.01016.36
7.3.230.0090.00916.53
7.3.210.0120.00416.59
7.3.200.0160.00619.39
7.3.190.0030.01916.49
7.3.180.0100.00616.45
7.3.170.0090.00916.27
7.3.160.0060.01316.32
7.3.120.0100.00614.85
7.2.330.0090.00916.60
7.2.320.0080.00816.18
7.2.310.0120.00616.51
7.2.300.0160.00016.66
7.2.290.0060.01316.64
7.2.60.0030.00916.83
7.2.00.0070.00719.36
7.1.200.0090.00315.69
7.1.100.0110.00418.26
7.1.70.0000.01216.80
7.1.60.0100.01319.29
7.1.50.0170.02034.78
7.1.00.0000.07722.54
7.0.200.0040.00716.83
7.0.140.0030.07322.09
7.0.60.0130.07720.07
7.0.50.0070.08017.95
7.0.40.0070.05020.25
7.0.30.0330.07020.09
7.0.20.0230.07020.06
7.0.10.0330.07720.12
7.0.00.0100.08020.20
5.6.210.0000.04320.50
5.6.200.0070.06018.15
5.6.190.0070.04320.41
5.6.180.0070.08320.46
5.6.170.0270.04720.48
5.6.160.0130.04720.50
5.6.150.0100.03318.24
5.6.140.0070.05718.14
5.6.130.0100.07018.23
5.6.120.0100.05320.99
5.6.110.0070.07320.93
5.6.100.0030.04020.98
5.6.90.0130.07021.08
5.6.80.0030.06020.44
5.6.70.0330.07320.50
5.5.350.0000.08320.41
5.5.340.0130.07317.99
5.5.330.0070.05320.45
5.5.320.0030.08720.52
5.5.310.0230.07720.34
5.5.300.0070.07017.97
5.5.290.0170.07017.95
5.5.280.0130.04720.74
5.5.270.0000.05020.87
5.5.260.0070.07320.89
5.5.250.0030.05320.55
5.5.240.0170.06320.28
5.4.450.0630.04319.54
5.4.440.0900.05719.32
5.4.430.0500.04719.47
5.4.420.0130.05319.47
5.4.410.0670.06319.50
5.4.400.0100.05719.14
5.4.390.0600.07019.23
5.4.380.0230.05018.70
5.4.370.0170.05018.52
5.4.360.0170.05018.79
5.4.350.0230.04718.79
5.4.340.0200.04718.63
5.4.320.0070.04012.50
5.4.310.0070.04612.50
5.4.300.0070.04212.50
5.4.290.0060.04312.50
5.4.280.0060.03712.38
5.4.270.0080.03412.38
5.4.260.0020.04112.38
5.4.250.0070.03612.38
5.4.240.0060.04312.38
5.4.230.0090.04112.38
5.4.220.0040.04112.37
5.4.210.0050.03612.38
5.4.200.0050.03912.37
5.4.190.0060.03612.36
5.4.180.0090.03312.36
5.4.170.0070.03512.38
5.4.160.0060.04012.38
5.4.150.0040.04212.37
5.4.140.0030.04012.05
5.4.130.0050.03812.04
5.4.120.0070.03712.00
5.4.110.0080.03312.00
5.4.100.0110.03312.00
5.4.90.0080.03511.99
5.4.80.0060.03712.00
5.4.70.0040.03711.99
5.4.60.0060.03611.99
5.4.50.0030.04411.98
5.4.40.0040.04411.98
5.4.30.0090.04611.98
5.4.20.0110.04811.98
5.4.10.0050.03811.97
5.4.00.0070.03711.47
5.3.290.0080.04412.80
5.3.280.0110.03412.71
5.3.270.0070.03912.72
5.3.260.0080.05712.72
5.3.250.0070.03912.72
5.3.240.0060.03912.72
5.3.230.0070.03812.71
5.3.220.0060.03912.68
5.3.210.0050.04112.68
5.3.200.0120.04412.68
5.3.190.0060.03912.68
5.3.180.0120.04912.67
5.3.170.0100.05012.67
5.3.160.0130.05412.67
5.3.150.0080.06012.67
5.3.140.0120.04812.66
5.3.130.0070.04812.65
5.3.120.0090.04712.66
5.3.110.0060.05312.66
5.3.100.0090.04612.12
5.3.90.0090.03612.09
5.3.80.0070.03512.07
5.3.70.0110.03112.08
5.3.60.0070.03512.06
5.3.50.0070.03512.01
5.3.40.0040.03812.01
5.3.30.0070.03411.96
5.3.20.0060.03611.75
5.3.10.0040.03711.71
5.3.00.0070.03611.70
5.2.170.0060.0309.15
5.2.160.0090.0269.15
5.2.150.0070.0299.15
5.2.140.0070.0379.14
5.2.130.0070.0419.11
5.2.120.0090.0349.11
5.2.110.0040.0439.11
5.2.100.0060.0419.12
5.2.90.0060.0359.11
5.2.80.0080.0299.11
5.2.70.0040.0319.11
5.2.60.0020.0339.06
5.2.50.0040.0319.03
5.2.40.0040.0309.01
5.2.30.0090.0288.98
5.2.20.0070.0488.98
5.2.10.0070.0388.91
5.2.00.0040.0438.76
5.1.60.0030.0378.04
5.1.50.0060.0348.04
5.1.40.0050.0268.03
5.1.30.0060.0398.38
5.1.20.0030.0388.40
5.1.10.0090.0258.13
5.1.00.0060.0248.12
5.0.50.0040.0286.60
5.0.40.0070.0276.45
5.0.30.0040.0376.27
5.0.20.0030.0226.25
5.0.10.0050.0206.22
5.0.00.0050.0316.21
4.4.90.0040.0164.78
4.4.80.0020.0164.76
4.4.70.0030.0164.76
4.4.60.0030.0194.75
4.4.50.0020.0174.77
4.4.40.0030.0254.71
4.4.30.0020.0174.76
4.4.20.0060.0134.85
4.4.10.0030.0164.85
4.4.00.0040.0254.75
4.3.110.0040.0154.67
4.3.100.0020.0164.66
4.3.90.0020.0164.64
4.3.80.0020.0254.58
4.3.70.0010.0174.63
4.3.60.0020.0164.63
4.3.50.0020.0174.63
4.3.40.0040.0234.54
4.3.30.0030.0153.27
4.3.20.0040.0223.25
4.3.10.0020.0223.21
4.3.00.0000.02013.43

preferences:
51.99 ms | 401 KiB | 5 Q