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(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.60.0100.01016.50
8.3.50.0130.00722.12
8.3.40.0090.00618.72
8.3.30.0070.00719.05
8.3.20.0070.00020.20
8.3.10.0000.01123.48
8.3.00.0000.00822.21
8.2.180.0090.00916.50
8.2.170.0090.00622.96
8.2.160.0110.00320.53
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0040.00422.26
8.2.110.0060.00320.85
8.2.100.0000.01117.91
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0040.00419.41
8.2.30.0000.00917.93
8.2.20.0040.00417.63
8.2.10.0070.00017.55
8.2.00.0000.00717.73
8.1.280.0100.00725.92
8.1.270.0080.00023.70
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0090.00019.38
8.1.230.0070.00317.77
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0110.00017.23
8.1.190.0040.00717.41
8.1.180.0040.00418.10
8.1.170.0050.00318.44
8.1.160.0040.00422.01
8.1.150.0070.00018.63
8.1.140.0080.00017.44
8.1.130.0000.00717.82
8.1.120.0070.00017.46
8.1.110.0040.00417.49
8.1.100.0020.00517.38
8.1.90.0070.00017.45
8.1.80.0070.00017.50
8.1.70.0000.00717.43
8.1.60.0030.00617.46
8.1.50.0050.00317.46
8.1.40.0000.00817.41
8.1.30.0000.00817.58
8.1.20.0050.00217.54
8.1.10.0000.00717.38
8.1.00.0080.00017.43
8.0.300.0100.00018.77
8.0.290.0040.00417.16
8.0.280.0000.00718.44
8.0.270.0030.00317.25
8.0.260.0040.00416.88
8.0.250.0050.00217.04
8.0.240.0070.00017.01
8.0.230.0060.00016.89
8.0.220.0040.00416.94
8.0.210.0030.00316.83
8.0.200.0030.00317.06
8.0.190.0060.00317.04
8.0.180.0000.00716.86
8.0.170.0030.00616.94
8.0.160.0080.00016.95
8.0.150.0040.00416.90
8.0.140.0000.00816.88
8.0.130.0000.00613.41
8.0.120.0040.00416.83
8.0.110.0050.00216.80
8.0.100.0040.00416.79
8.0.90.0040.00416.84
8.0.80.0070.00916.99
8.0.70.0040.00416.81
8.0.60.0040.00416.86
8.0.50.0040.00416.91
8.0.30.0080.01017.17
8.0.20.0120.00617.40
8.0.10.0000.00816.93
8.0.00.0110.01016.87
7.4.330.0050.00015.00
7.4.320.0000.00616.52
7.4.300.0030.00316.58
7.4.290.0030.00316.60
7.4.280.0030.00316.59
7.4.270.0040.00416.57
7.4.260.0070.00016.50
7.4.250.0040.00416.57
7.4.240.0060.00216.43
7.4.230.0000.00716.57
7.4.220.0070.01116.59
7.4.210.0040.01116.52
7.4.200.0030.00316.44
7.4.190.0000.00816.68
7.4.160.0030.01316.55
7.4.150.0120.00617.40
7.4.140.0050.01317.86
7.4.130.0120.00516.55
7.4.120.0060.01116.48
7.4.110.0070.00716.44
7.4.100.0060.01216.59
7.4.90.0090.00916.53
7.4.80.0060.01219.39
7.4.70.0160.00016.58
7.4.60.0060.00916.43
7.4.50.0030.00316.55
7.4.40.0110.00022.77
7.4.30.0090.00616.42
7.4.00.0100.00714.80
7.3.330.0030.00313.31
7.3.320.0000.00513.16
7.3.310.0000.00716.32
7.3.300.0030.00316.18
7.3.290.0120.00316.29
7.3.280.0090.00916.28
7.3.270.0070.01017.40
7.3.260.0100.01016.29
7.3.250.0140.00516.46
7.3.240.0060.00916.23
7.3.230.0100.00716.39
7.3.210.0120.00416.41
7.3.200.0110.01519.39
7.3.190.0110.01116.25
7.3.180.0170.00316.46
7.3.170.0110.01116.27
7.3.160.0090.01316.43
7.3.120.0060.00914.76
7.2.330.0070.01716.78
7.2.320.0130.00316.62
7.2.310.0120.00616.71
7.2.300.0000.01816.39
7.2.290.0030.01416.47
7.1.70.0000.00916.96
7.1.60.0030.01919.29
7.1.50.0070.01116.65
7.1.00.0030.07722.37
7.0.200.0100.00016.45
7.0.140.0030.09021.95
7.0.60.0100.07319.88
7.0.50.0100.08017.86
7.0.40.0070.06019.97
7.0.30.0270.06320.12
7.0.20.0200.04020.26
7.0.10.0130.04720.16
7.0.00.0030.09020.15
5.6.280.0000.07721.04
5.6.210.0100.06020.65
5.6.200.0070.05018.29
5.6.190.0030.04320.61
5.6.180.0000.05020.34
5.6.170.0200.06320.73
5.6.160.0000.06320.47
5.6.150.0130.06018.23
5.6.140.0000.04318.26
5.6.130.0130.06718.15
5.6.120.0070.03721.10
5.6.110.0000.04321.13
5.6.100.0070.08720.95
5.6.90.0070.08320.95
5.6.80.0070.06720.36
5.6.70.0330.06320.37
5.5.350.0030.08320.44
5.5.340.0000.08317.97
5.5.330.0070.08020.19
5.5.320.0030.05020.35
5.5.310.0300.06720.30
5.5.300.0070.07718.01
5.5.290.0000.09317.98
5.5.280.0100.08020.99
5.5.270.0100.04720.77
5.5.260.0100.03720.98
5.5.250.0130.07320.62
5.5.240.0000.08320.26
5.4.450.0170.05019.55
5.4.440.0700.05319.55
5.4.430.0670.05719.30
5.4.420.0630.05719.38
5.4.410.0170.04719.18
5.4.400.0630.05019.33
5.4.390.0600.06319.16
5.4.380.0070.05718.84
5.4.370.0200.06318.76
5.4.360.0170.05318.54
5.4.350.0200.05318.63
5.4.340.0100.05718.78
5.4.320.0080.03412.50
5.4.310.0080.04112.50
5.4.300.0040.03812.50
5.4.290.0080.03912.50
5.4.280.0080.05712.37
5.4.270.0040.06012.37
5.4.260.0080.05312.36
5.4.250.0080.05412.37
5.4.240.0040.04412.37
5.4.230.0050.03912.36
5.4.220.0080.04512.36
5.4.210.0030.04012.36
5.4.200.0100.04712.36
5.4.190.0050.03912.35
5.4.180.0060.03712.36
5.4.170.0050.03912.37
5.4.160.0090.04912.36
5.4.150.0060.04212.36
5.4.140.0100.04312.04
5.4.130.0050.03812.03
5.4.120.0080.03811.99
5.4.110.0030.03811.98
5.4.100.0070.03411.98
5.4.90.0060.03811.98
5.4.80.0080.03611.98
5.4.70.0100.03411.98
5.4.60.0050.03711.98
5.4.50.0070.03711.98
5.4.40.0040.04811.97
5.4.30.0070.03611.97
5.4.20.0030.03911.96
5.4.10.0050.03811.96
5.4.00.0120.04611.45
5.3.290.0080.03812.80
5.3.280.0090.05712.71
5.3.270.0090.04512.73
5.3.260.0070.04312.71
5.3.250.0090.04112.72
5.3.240.0100.04612.72
5.3.230.0110.07012.70
5.3.220.0070.05512.68
5.3.210.0120.05512.68
5.3.200.0090.05212.68
5.3.190.0110.07412.68
5.3.180.0080.03912.67
5.3.170.0140.04712.67
5.3.160.0090.04012.67
5.3.150.0120.05812.67
5.3.140.0120.06612.66
5.3.130.0090.04712.66
5.3.120.0090.04512.66
5.3.110.0100.04212.66
5.3.100.0070.04312.12
5.3.90.0090.04612.08
5.3.80.0080.03912.08
5.3.70.0080.03512.08
5.3.60.0070.04612.06
5.3.50.0080.06312.00
5.3.40.0050.06212.00
5.3.30.0080.05011.95
5.3.20.0060.04911.74
5.3.10.0180.08111.70
5.3.00.0080.04011.69
5.2.170.0100.0569.15
5.2.160.0050.0339.15
5.2.150.0070.0299.15
5.2.140.0070.0369.14
5.2.130.0070.0359.11
5.2.120.0070.0329.11
5.2.110.0050.0339.11
5.2.100.0080.0479.12
5.2.90.0060.0429.11
5.2.80.0090.0359.11
5.2.70.0130.0399.11
5.2.60.0090.0419.06
5.2.50.0070.0809.04
5.2.40.0070.0389.00
5.2.30.0100.0388.98
5.2.20.0190.1078.97
5.2.10.0070.0718.90
5.2.00.0100.0498.76
5.1.60.0100.0398.04
5.1.50.0060.0418.04
5.1.40.0030.0378.03
5.1.30.0120.0538.38
5.1.20.0060.0418.40
5.1.10.0090.0328.12
5.1.00.0050.0278.13
5.0.50.0040.0226.59
5.0.40.0040.0216.46
5.0.30.0050.0326.27
5.0.20.0050.0206.24
5.0.10.0050.0206.22
5.0.00.0050.0316.21
4.4.90.0050.0144.78
4.4.80.0060.0174.75
4.4.70.0050.0234.76
4.4.60.0050.0244.76
4.4.50.0060.0224.77
4.4.40.0050.0314.71
4.4.30.0020.0184.76
4.4.20.0070.0184.84
4.4.10.0070.0204.85
4.4.00.0060.0334.76
4.3.110.0050.0354.67
4.3.100.0070.0204.66
4.3.90.0070.0164.63
4.3.80.0050.0264.58
4.3.70.0030.0144.63
4.3.60.0040.0204.63
4.3.50.0020.0164.63
4.3.40.0020.0274.54
4.3.30.0020.0183.27
4.3.20.0020.0183.25
4.3.10.0010.0183.21
4.3.00.0130.01013.43

preferences:
42.45 ms | 400 KiB | 5 Q