3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Concrete\Test { class Foo {} class_alias('\Concrete\Test\Foo', 'DerpFoo'); } namespace Concrete\BetterTest { use DerpFoo; class BetterFoo extends DerpFoo {} class Test { public function __construct(DerpFoo $foo) {} } $f = new Derp(new 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.40.0070.00718.77
8.3.30.0070.00719.09
8.3.20.0040.00419.95
8.3.10.0070.00023.65
8.3.00.0040.00422.43
8.2.170.0070.00722.96
8.2.160.0140.00020.52
8.2.150.0070.00724.18
8.2.140.0030.00524.66
8.2.130.0070.01126.16
8.2.120.0070.00022.26
8.2.110.0090.00022.16
8.2.100.0090.00317.84
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0030.00618.04
8.2.50.0060.00318.07
8.2.40.0040.00418.28
8.2.30.0050.00318.13
8.2.20.0000.00817.72
8.2.10.0000.00717.66
8.2.00.0040.00417.75
8.1.270.0060.00322.19
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.88
8.1.230.0040.00719.00
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0000.00717.54
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0050.00222.02
8.1.150.0040.00418.64
8.1.140.0080.00017.39
8.1.130.0040.00417.73
8.1.120.0040.00417.34
8.1.110.0000.00817.37
8.1.100.0040.00417.38
8.1.90.0030.00317.32
8.1.80.0000.00717.42
8.1.70.0040.00417.36
8.1.60.0070.00317.41
8.1.50.0080.00017.37
8.1.40.0000.00717.41
8.1.30.0030.00617.48
8.1.20.0000.00817.58
8.1.10.0070.00017.48
8.1.00.0050.00317.36
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0030.00318.36
8.0.270.0000.00717.31
8.0.260.0000.00616.75
8.0.250.0070.00017.06
8.0.240.0030.00317.04
8.0.230.0050.00217.02
8.0.220.0000.00716.95
8.0.210.0000.00617.00
8.0.200.0040.00416.97
8.0.190.0050.00317.06
8.0.180.0000.00716.98
8.0.170.0040.00417.04
8.0.160.0000.00817.05
8.0.150.0030.00316.86
8.0.140.0040.00416.91
8.0.130.0000.00513.35
8.0.120.0000.00816.90
8.0.110.0040.00416.98
8.0.100.0000.00716.95
8.0.90.0000.00716.98
8.0.80.0090.01216.86
8.0.70.0000.00716.83
8.0.60.0040.00416.99
8.0.50.0040.00417.06
8.0.30.0100.01017.20
8.0.20.0090.00917.40
8.0.10.0000.00716.79
8.0.00.0090.01216.88
7.4.330.0050.00015.00
7.4.320.0030.00316.58
7.4.300.0040.00416.45
7.4.290.0030.00316.45
7.4.280.0030.00316.45
7.4.270.0030.00516.42
7.4.260.0030.00516.44
7.4.250.0040.00416.31
7.4.240.0050.00216.46
7.4.230.0030.00316.63
7.4.220.0060.01316.58
7.4.210.0060.01016.53
7.4.200.0000.00716.44
7.4.190.0050.00216.63
7.4.160.0080.00816.35
7.4.150.0060.01217.40
7.4.140.0060.01117.86
7.4.130.0120.00616.61
7.4.120.0080.01216.49
7.4.110.0030.01316.46
7.4.100.0130.00716.45
7.4.90.0060.01016.52
7.4.80.0030.01519.39
7.4.70.0130.00316.48
7.4.60.0100.00616.61
7.4.50.0000.00516.63
7.4.40.0100.00522.77
7.4.30.0040.01216.42
7.4.00.0070.01014.59
7.3.330.0030.00313.27
7.3.320.0030.00213.11
7.3.310.0040.00416.29
7.3.300.0030.00316.32
7.3.290.0150.00016.27
7.3.280.0120.01716.32
7.3.270.0140.00417.40
7.3.260.0120.00616.52
7.3.250.0100.00916.46
7.3.240.0110.00516.36
7.3.230.0060.01016.49
7.3.210.0090.01016.42
7.3.200.0080.00819.39
7.3.190.0110.00616.59
7.3.180.0120.00416.48
7.3.170.0130.01016.29
7.3.160.0120.00916.45
7.3.120.0100.00315.03
7.2.330.0080.00816.57
7.2.320.0070.01416.21
7.2.310.0080.00816.30
7.2.300.0070.01716.51
7.2.290.0060.01216.41
7.2.60.0070.00716.88
7.2.50.0100.00016.74
7.2.00.0030.01019.02
7.1.200.0070.00715.75
7.1.70.0000.00717.07
7.1.60.0000.01619.29
7.1.50.0060.01516.84
7.1.00.0000.08022.45
7.0.200.0030.01216.73
7.0.140.0030.07022.11
7.0.60.0270.07720.07
7.0.50.0100.08017.74
7.0.40.0070.06020.24
7.0.30.0230.04020.26
7.0.20.0270.04020.05
7.0.10.0030.06020.16
7.0.00.0030.07320.16
5.6.280.0030.07320.91
5.6.210.0000.04720.54
5.6.200.0030.05018.19
5.6.190.0100.04020.77
5.6.180.0230.05320.33
5.6.170.0330.07020.57
5.6.160.0130.06020.39
5.6.150.0100.04318.16
5.6.140.0100.08018.15
5.6.130.0030.09018.18
5.6.120.0070.05720.90
5.6.110.0030.04721.01
5.6.100.0070.03721.01
5.6.90.0030.08721.07
5.6.80.0000.04320.42
5.5.350.0100.06720.45
5.5.340.0100.06017.98
5.5.330.0100.07020.35
5.5.320.0070.07320.35
5.5.310.0370.07320.35
5.5.300.0100.07717.99
5.5.290.0070.07318.03
5.5.280.0070.04020.81
5.5.270.0070.08320.89
5.5.260.0000.05020.73
5.5.250.0130.06320.47
5.5.240.0270.05720.16
5.4.450.0530.04319.41
5.4.440.0500.06319.62
5.4.430.0330.06719.63
5.4.420.0800.05019.38
5.4.410.0830.07019.18
5.4.400.0530.06018.88
5.4.390.0700.05719.22
5.4.380.0130.05318.59
5.4.370.0130.05718.61
5.4.360.0170.05018.56
5.4.350.0130.05318.79
5.4.340.0170.05318.53
5.4.320.0060.03912.50
5.4.310.0070.03812.50
5.4.300.0030.03812.50
5.4.290.0050.04312.49
5.4.280.0060.04112.37
5.4.270.0020.04412.36
5.4.260.0100.03512.37
5.4.250.0110.04912.36
5.4.240.0050.04012.36
5.4.230.0060.04012.36
5.4.220.0060.03812.36
5.4.210.0090.03412.36
5.4.200.0090.03712.36
5.4.190.0060.03812.36
5.4.180.0050.04212.35
5.4.170.0040.04012.37
5.4.160.0070.03612.36
5.4.150.0090.04212.36
5.4.140.0040.04112.05
5.4.130.0060.03712.03
5.4.120.0040.04911.99
5.4.110.0150.10011.98
5.4.100.0030.03911.98
5.4.90.0050.04211.98
5.4.80.0080.03511.98
5.4.70.0050.03611.98
5.4.60.0080.03311.98
5.4.50.0080.04211.98
5.4.40.0100.06611.97
5.4.30.0080.04611.96
5.4.20.0090.04211.96
5.4.10.0090.03511.97
5.4.00.0050.03811.45
5.3.290.0090.03712.80
5.3.280.0060.03912.71
5.3.270.0080.04412.72
5.3.260.0050.04212.72
5.3.250.0070.03712.72
5.3.240.0040.04112.72
5.3.230.0090.03612.71
5.3.220.0060.04012.68
5.3.210.0080.03812.68
5.3.200.0070.03912.68
5.3.190.0070.04212.68
5.3.180.0070.03912.67
5.3.170.0030.04112.67
5.3.160.0070.04612.68
5.3.150.0080.06212.67
5.3.140.0090.05412.66
5.3.130.0040.06112.65
5.3.120.0110.05312.66
5.3.110.0080.05012.66
5.3.100.0050.04112.11
5.3.90.0030.04212.08
5.3.80.0060.03812.08
5.3.70.0090.03612.08
5.3.60.0070.03712.07
5.3.50.0040.04012.00
5.3.40.0060.03912.00
5.3.30.0080.03611.95
5.3.20.0090.03611.74
5.3.10.0090.04411.71
5.3.00.0110.05011.70
5.2.170.0090.0389.15
5.2.160.0070.0439.15
5.2.150.0070.0469.15
5.2.140.0110.0659.14
5.2.130.0120.0489.11
5.2.120.0090.0449.11
5.2.110.0090.0419.12
5.2.100.0040.0479.12
5.2.90.0060.0459.11
5.2.80.0120.0419.11
5.2.70.0100.0459.10
5.2.60.0060.0429.05
5.2.50.0070.0429.03
5.2.40.0120.0439.00
5.2.30.0060.0658.99
5.2.20.0120.0448.97
5.2.10.0100.0398.90
5.2.00.0060.0358.76
5.1.60.0080.0218.04
5.1.50.0060.0258.04
5.1.40.0080.0328.03
5.1.30.0050.0288.38
5.1.20.0050.0298.40
5.1.10.0050.0318.13
5.1.00.0050.0258.12
5.0.50.0040.0196.60
5.0.40.0020.0216.46
5.0.30.0050.0316.27
5.0.20.0000.0266.25
5.0.10.0050.0406.22
5.0.00.0130.0456.21
4.4.90.0020.0194.78
4.4.80.0020.0194.75
4.4.70.0020.0184.76
4.4.60.0050.0144.76
4.4.50.0010.0184.77
4.4.40.0020.0264.71
4.4.30.0030.0154.76
4.4.20.0060.0124.84
4.4.10.0030.0174.85
4.4.00.0030.0314.76
4.3.110.0030.0314.67
4.3.100.0020.0254.67
4.3.90.0040.0214.63
4.3.80.0030.0324.59
4.3.70.0040.0214.63
4.3.60.0030.0214.63
4.3.50.0060.0194.62
4.3.40.0070.0274.54
4.3.30.0020.0233.27
4.3.20.0030.0203.25
4.3.10.0040.0193.22
4.3.00.0030.01713.43

preferences:
42.33 ms | 400 KiB | 5 Q