3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace derp { class Foo {} class_alias('\derp\Foo', 'DerpFoo'); } namespace herp { use DerpFoo; class BetterFoo extends DerpFoo {} class Derp { public function __construct(\derp\Foo $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.60.0120.00616.61
8.3.50.0070.01118.19
8.3.40.0070.01118.84
8.3.30.0070.00719.06
8.3.20.0000.00720.21
8.3.10.0000.00723.61
8.3.00.0040.00422.46
8.2.180.0120.00316.38
8.2.170.0120.00322.96
8.2.160.0070.00720.57
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0140.00426.16
8.2.120.0000.00822.11
8.2.110.0090.00022.16
8.2.100.0040.00717.72
8.2.90.0070.00219.14
8.2.80.0000.00817.97
8.2.70.0080.00017.50
8.2.60.0030.00518.04
8.2.50.0040.00418.07
8.2.40.0080.00018.16
8.2.30.0030.00617.93
8.2.20.0050.00317.71
8.2.10.0000.00717.74
8.2.00.0000.01017.54
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0000.01118.97
8.1.220.0060.00317.79
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0050.00318.65
8.1.160.0080.00022.13
8.1.150.0040.00418.58
8.1.140.0070.00017.50
8.1.130.0030.00317.74
8.1.120.0030.00317.47
8.1.110.0000.00817.46
8.1.100.0070.00017.47
8.1.90.0040.00417.37
8.1.80.0070.00017.46
8.1.70.0000.00717.36
8.1.60.0000.00817.49
8.1.50.0050.00217.44
8.1.40.0040.00417.40
8.1.30.0040.00417.49
8.1.20.0060.00317.63
8.1.10.0030.00517.38
8.1.00.0040.00417.36
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0000.00718.35
8.0.270.0000.00717.21
8.0.260.0070.00016.88
8.0.250.0030.00317.04
8.0.240.0060.00316.95
8.0.230.0020.00516.89
8.0.220.0030.00316.78
8.0.210.0030.00316.95
8.0.200.0030.00317.00
8.0.190.0050.00216.97
8.0.180.0000.00716.98
8.0.170.0020.00516.94
8.0.160.0040.00417.06
8.0.150.0000.00716.84
8.0.140.0000.00716.79
8.0.130.0030.00313.37
8.0.120.0040.00416.92
8.0.110.0070.00016.85
8.0.100.0000.00716.91
8.0.90.0040.00416.77
8.0.80.0120.00916.96
8.0.70.0040.00416.82
8.0.60.0050.00216.85
8.0.50.0040.00416.88
8.0.30.0120.00617.02
8.0.20.0130.00617.40
8.0.10.0000.00716.96
8.0.00.0110.01116.87
7.4.330.0000.00515.14
7.4.320.0040.00416.57
7.4.300.0050.00316.41
7.4.290.0000.00816.47
7.4.280.0030.00316.41
7.4.270.0030.00316.55
7.4.260.0070.00016.46
7.4.250.0000.00716.45
7.4.240.0040.00316.55
7.4.230.0000.00716.67
7.4.220.0090.00916.59
7.4.210.0110.00616.58
7.4.200.0030.00316.52
7.4.190.0000.00816.46
7.4.160.0080.00816.42
7.4.150.0120.00617.40
7.4.140.0060.01117.86
7.4.130.0120.00716.54
7.4.120.0110.00916.39
7.4.110.0080.00816.60
7.4.100.0160.00616.49
7.4.90.0070.01016.43
7.4.80.0150.00319.39
7.4.70.0080.00816.57
7.4.60.0060.00916.51
7.4.50.0000.00716.64
7.4.40.0000.01122.77
7.4.30.0030.01516.36
7.4.00.0040.01114.95
7.3.330.0030.00313.17
7.3.320.0000.00513.10
7.3.310.0000.00716.34
7.3.300.0080.00016.16
7.3.290.0080.00816.33
7.3.280.0080.01016.28
7.3.270.0100.00717.40
7.3.260.0130.00716.47
7.3.250.0110.00716.34
7.3.240.0080.00816.31
7.3.230.0080.00816.39
7.3.210.0190.00216.26
7.3.200.0110.00519.39
7.3.190.0200.00316.21
7.3.180.0040.01516.16
7.3.170.0070.01016.56
7.3.160.0070.01416.18
7.3.120.0080.00714.67
7.3.110.0040.01414.70
7.3.100.0090.00614.42
7.3.90.0060.00914.77
7.3.80.0000.01214.45
7.3.70.0060.00314.65
7.3.60.0070.00714.80
7.3.50.0040.01214.98
7.3.40.0090.00714.82
7.3.30.0060.00614.66
7.3.20.0030.01116.38
7.3.10.0040.00816.80
7.3.00.0060.00616.82
7.2.330.0130.00916.78
7.2.320.0180.00416.61
7.2.310.0030.01616.91
7.2.300.0110.00716.69
7.2.290.0070.01016.55
7.2.250.0030.01514.90
7.2.240.0070.01415.02
7.2.230.0030.00915.04
7.2.220.0130.00014.83
7.2.210.0080.00414.86
7.2.200.0050.01015.11
7.2.190.0040.01115.11
7.2.180.0040.01115.01
7.2.170.0030.00914.98
7.2.60.0180.00017.00
7.1.330.0030.00915.92
7.1.320.0060.00315.53
7.1.310.0030.01015.63
7.1.300.0040.01115.44
7.1.290.0030.01115.68
7.1.280.0070.00315.50
7.1.270.0000.01115.46
7.1.260.0000.01415.46
7.1.200.0070.01015.77
7.1.70.0090.00616.71
7.1.60.0030.00717.20
7.1.50.0160.00316.98
7.1.00.0000.08022.41
7.0.200.0100.00316.90
7.0.140.0130.06322.08
7.0.60.0070.08019.99
7.0.50.0030.05717.87
7.0.40.0070.04320.09
7.0.30.0330.07020.07
7.0.20.0230.04020.06
7.0.10.0200.04020.25
7.0.00.0100.04720.12
5.6.280.0000.07721.11
5.6.210.0070.05020.77
5.6.200.0030.04318.19
5.6.190.0000.04720.34
5.6.180.0030.06320.61
5.6.170.0170.06020.57
5.6.160.0100.05720.55
5.6.150.0130.04718.18
5.6.140.0070.04018.18
5.6.130.0100.07318.18
5.6.120.0000.04320.97
5.6.110.0100.03721.02
5.6.100.0100.08020.99
5.6.90.0030.08320.96
5.6.80.0070.08320.29
5.6.70.0300.07020.48
5.5.350.0030.06320.39
5.5.340.0070.08317.94
5.5.330.0170.03320.21
5.5.320.0030.04020.29
5.5.310.0400.04320.34
5.5.300.0000.04717.98
5.5.290.0100.08318.08
5.5.280.0170.07720.69
5.5.270.0070.06020.73
5.5.260.0000.04320.80
5.5.250.0070.08720.58
5.5.240.0070.07720.27
5.4.450.0170.06019.59
5.4.440.0630.07319.55
5.4.430.0200.05719.52
5.4.420.0070.05719.38
5.4.410.0670.06319.26
5.4.400.0430.04719.31
5.4.390.0300.04719.30
5.4.380.0130.05018.72
5.4.370.0200.05018.56
5.4.360.0130.05318.74
5.4.350.0330.04018.81
5.4.340.0200.04718.73
5.4.320.0080.03712.50
5.4.310.0090.04712.50
5.4.300.0090.03812.50
5.4.290.0060.04512.50
5.4.280.0060.04312.38
5.4.270.0080.03612.38
5.4.260.0100.05212.38
5.4.250.0070.04812.38
5.4.240.0070.03712.38
5.4.230.0070.04612.37
5.4.220.0190.06412.37
5.4.210.0150.06512.37
5.4.200.0130.04912.37
5.4.190.0100.07212.36
5.4.180.0110.04412.37
5.4.170.0080.03812.38
5.4.160.0070.03712.38
5.4.150.0090.03712.37
5.4.140.0090.03812.06
5.4.130.0060.05012.04
5.4.120.0080.03812.00
5.4.110.0150.04312.00
5.4.100.0060.06312.00
5.4.90.0140.05012.00
5.4.80.0080.03912.00
5.4.70.0040.04211.99
5.4.60.0050.03912.00
5.4.50.0080.03711.99
5.4.40.0090.04411.98
5.4.30.0090.04611.98
5.4.20.0140.03411.97
5.4.10.0140.06311.98
5.4.00.0060.04811.46
5.3.290.0050.04912.80
5.3.280.0030.04112.71
5.3.270.0030.04412.72
5.3.260.0050.04312.72
5.3.250.0060.04112.72
5.3.240.0080.03912.72
5.3.230.0060.04112.71
5.3.220.0080.04012.68
5.3.210.0130.04512.68
5.3.200.0110.06812.68
5.3.190.0110.05712.68
5.3.180.0110.04512.67
5.3.170.0210.09912.67
5.3.160.0160.08612.67
5.3.150.0080.09012.67
5.3.140.0080.05512.66
5.3.130.0070.05812.66
5.3.120.0050.05912.66
5.3.110.0070.05612.66
5.3.100.0070.05212.12
5.3.90.0080.05312.09
5.3.80.0130.04412.08
5.3.70.0060.05112.08
5.3.60.0080.04912.07
5.3.50.0060.04712.00
5.3.40.0060.05312.01
5.3.30.0090.03711.96
5.3.20.0150.07111.75
5.3.10.0070.05811.71
5.3.00.0070.05511.70
5.2.170.0100.0599.15
5.2.160.0120.0709.15
5.2.150.0050.0459.14
5.2.140.0050.0479.15
5.2.130.0100.0659.11
5.2.120.0070.0439.11
5.2.110.0090.0629.11
5.2.100.0060.0459.11
5.2.90.0030.0459.11
5.2.80.0070.0439.11
5.2.70.0090.0599.11
5.2.60.0160.0789.06
5.2.50.0130.0549.03
5.2.40.0100.0399.00
5.2.30.0090.0348.98
5.2.20.0060.0328.97
5.2.10.0080.0328.90
5.2.00.0090.0318.77
5.1.60.0020.0278.04
5.1.50.0090.0288.04
5.1.40.0070.0318.03
5.1.30.0090.0318.38
5.1.20.0080.0408.40
5.1.10.0090.0438.13
5.1.00.0050.0378.13
5.0.50.0090.0506.59
5.0.40.0040.0286.46
5.0.30.0050.0326.27
5.0.20.0030.0286.24
5.0.10.0030.0226.22
5.0.00.0010.0446.21
4.4.90.0030.0214.78
4.4.80.0050.0184.75
4.4.70.0060.0154.75
4.4.60.0020.0184.75
4.4.50.0070.0184.77
4.4.40.0050.0304.70
4.4.30.0050.0194.76
4.4.20.0020.0194.85
4.4.10.0050.0164.85
4.4.00.0050.0264.76
4.3.110.0020.0184.67
4.3.100.0040.0164.66
4.3.90.0060.0134.64
4.3.80.0050.0254.58
4.3.70.0050.0184.63
4.3.60.0050.0194.63
4.3.50.0030.0194.63
4.3.40.0040.0284.54
4.3.30.0030.0223.27
4.3.20.0030.0223.25
4.3.10.0050.0213.21
4.3.00.0030.01013.43

preferences:
53.43 ms | 400 KiB | 5 Q