3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NS { class A { function test() { echo 'test'; } } } namespace NS2 { class_alias( 'NS\A', 'B' ); } namespace NS3 { class MyClass extends \B { function test() { echo 'test under MyClass'; } } } namespace NS4 { function foo (\B $f) { $f->test(); } foo (new NS3\MyClass); }

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.0160.00316.75
8.3.50.0130.00722.94
8.3.40.0110.00418.58
8.3.30.0110.00319.17
8.3.20.0070.00020.29
8.3.10.0070.00418.85
8.3.00.0040.00419.32
8.2.180.0110.00416.50
8.2.170.0110.00422.96
8.2.160.0090.00620.39
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0030.00721.04
8.2.110.0130.00319.25
8.2.100.0080.00417.91
8.2.90.0060.00317.97
8.2.80.0000.00819.28
8.2.70.0050.00317.93
8.2.60.0000.00917.79
8.2.50.0090.00018.10
8.2.40.0000.00820.31
8.2.30.0040.00419.36
8.2.20.0050.00317.80
8.2.10.0040.00417.98
8.2.00.0040.00417.72
8.1.280.0080.00625.92
8.1.270.0040.00421.88
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00319.20
8.1.230.0040.00720.89
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0050.00317.36
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0000.00818.75
8.1.160.0050.00322.16
8.1.150.0050.00318.78
8.1.140.0050.00217.37
8.1.130.0030.00317.75
8.1.120.0000.00717.38
8.1.110.0050.00317.29
8.1.100.0000.00717.33
8.1.90.0030.00317.28
8.1.80.0000.00717.31
8.1.70.0030.00317.41
8.1.60.0080.00017.41
8.1.50.0050.00517.45
8.1.40.0060.00317.41
8.1.30.0000.00817.56
8.1.20.0000.00717.59
8.1.10.0040.00417.41
8.1.00.0040.00417.48
8.0.300.0040.00420.13
8.0.290.0050.00216.63
8.0.280.0000.00718.56
8.0.270.0070.00017.14
8.0.260.0000.00717.18
8.0.250.0040.00416.96
8.0.240.0000.00717.02
8.0.230.0040.00416.95
8.0.220.0070.00016.99
8.0.210.0070.00016.88
8.0.200.0000.00717.02
8.0.190.0040.00417.05
8.0.180.0050.00317.01
8.0.170.0040.00416.89
8.0.160.0030.00316.90
8.0.150.0000.00716.79
8.0.140.0050.00516.82
8.0.130.0000.00613.34
8.0.120.0000.00816.81
8.0.110.0040.00416.96
8.0.100.0040.00416.82
8.0.90.0030.00516.79
8.0.80.0100.00716.98
8.0.70.0000.00716.81
8.0.60.0030.00516.86
8.0.50.0040.00416.99
8.0.30.0140.00817.07
8.0.20.0120.00817.40
8.0.10.0030.00616.89
8.0.00.0050.01216.95
7.4.330.0050.00015.09
7.4.320.0000.00616.57
7.4.300.0030.00316.54
7.4.290.0070.00016.34
7.4.280.0040.00416.54
7.4.270.0050.00216.38
7.4.260.0030.00616.54
7.4.250.0070.00016.38
7.4.240.0070.00016.53
7.4.230.0030.00316.30
7.4.220.0120.00616.48
7.4.210.0070.00716.50
7.4.200.0040.00416.42
7.4.160.0070.01016.46
7.4.150.0070.01517.40
7.4.140.0090.01117.86
7.4.130.0050.01316.47
7.4.120.0080.00816.44
7.4.110.0070.01016.56
7.4.100.0130.00316.54
7.4.90.0120.00616.43
7.4.80.0090.01119.39
7.4.70.0100.01016.59
7.4.60.0070.01016.54
7.4.50.0000.00816.53
7.4.40.0100.00716.19
7.4.30.0100.00316.55
7.4.00.0030.01014.90
7.3.330.0030.00313.23
7.3.320.0000.00513.15
7.3.310.0000.00716.17
7.3.300.0070.00016.27
7.3.290.0060.01516.32
7.3.280.0060.01116.32
7.3.270.0170.00017.40
7.3.260.0120.00616.52
7.3.250.0150.00516.45
7.3.240.0110.01116.32
7.3.230.0130.00316.48
7.3.210.0160.00516.50
7.3.200.0120.01119.39
7.3.190.0150.00316.49
7.3.180.0140.00016.62
7.3.170.0100.00716.49
7.3.160.0090.00616.48
7.2.330.0140.00416.37
7.2.320.0060.01116.36
7.2.310.0030.01816.46
7.2.300.0030.01316.65
7.2.290.0100.00616.19
7.2.60.0040.01116.92
7.2.50.0100.00716.76
7.2.00.0080.00319.03
7.1.200.0030.00715.73
7.1.70.0000.01017.06
7.1.60.0070.01819.61
7.1.50.0040.00716.91
7.1.00.0000.07722.36
7.0.200.0000.01016.55
7.0.140.0100.06722.05
7.0.60.0170.04019.91
7.0.50.0100.07717.80
7.0.40.0130.06320.04
7.0.30.0630.06720.07
7.0.20.0200.03720.07
7.0.10.0400.04320.15
7.0.00.0030.06720.14
5.6.280.0100.06721.08
5.6.210.0070.06320.73
5.6.200.0100.07318.29
5.6.190.0070.04320.60
5.6.180.0200.04020.64
5.6.170.0300.07320.47
5.6.160.0070.08320.56
5.6.150.0070.08718.20
5.6.140.0130.07718.26
5.6.130.0030.04018.28
5.6.120.0070.04321.16
5.6.110.0030.06721.04
5.6.100.0070.08321.11
5.6.90.0030.08721.03
5.6.80.0200.06720.39
5.5.350.2930.03320.43
5.5.340.0100.07718.05
5.5.330.0130.07320.57
5.5.320.0300.05020.30
5.5.310.0300.06320.19
5.5.300.0070.05717.95
5.5.290.0130.08017.95
5.5.280.0130.05020.69
5.5.270.0130.06720.80
5.5.260.0100.07020.68
5.5.250.0070.08020.71
5.5.240.0330.05720.20
5.4.450.0200.04019.48
5.4.440.0300.04719.27
5.4.430.0330.04719.49
5.4.420.0070.04019.63
5.4.410.0100.04719.32
5.4.400.0400.03319.30
5.4.390.0200.04719.02
5.4.380.0330.07018.61
5.4.370.0530.04318.73
5.4.360.0200.07018.46
5.4.350.0230.04318.73
5.4.340.0330.05018.71
5.4.320.0050.03812.51
5.4.310.0070.04012.51
5.4.300.0070.03912.51
5.4.290.0060.04812.50
5.4.280.0090.03212.40
5.4.270.0080.03712.40
5.4.260.0110.04012.40
5.4.250.0110.03512.40
5.4.240.0070.03412.40
5.4.230.0080.04712.39
5.4.220.0080.03512.39
5.4.210.0070.03512.39
5.4.200.0050.04612.39
5.4.190.0060.03612.39
5.4.180.0090.03612.39
5.4.170.0070.03912.40
5.4.160.0060.03912.39
5.4.150.0060.03812.39
5.4.140.0050.03812.07
5.4.130.0080.04312.06
5.4.120.0100.03712.02
5.4.110.0110.03412.02
5.4.100.0080.04312.02
5.4.90.0090.04112.02
5.4.80.0060.04012.02
5.4.70.0060.03612.01
5.4.60.0070.03712.02
5.4.50.0100.03912.01
5.4.40.0090.03312.00
5.4.30.0090.03412.00
5.4.20.0070.04612.00
5.4.10.0080.03312.00
5.4.00.0080.03511.49
5.3.290.0120.04812.80
5.3.280.0080.04612.71
5.3.270.0100.04112.72
5.3.260.0100.04512.71
5.3.250.0100.05112.72
5.3.240.0060.04212.72
5.3.230.0040.04112.71
5.3.220.0090.04412.68
5.3.210.0050.04812.68
5.3.200.0050.04012.68
5.3.190.0080.03612.67
5.3.180.0090.03812.68
5.3.170.0080.03712.67
5.3.160.0060.03712.68
5.3.150.0050.04012.67
5.3.140.0080.04512.66
5.3.130.0030.04712.66
5.3.120.0080.04012.66
5.3.110.0120.03512.66
5.3.100.0090.03612.14
5.3.90.0060.03712.12
5.3.80.0070.03812.11
5.3.70.0080.03712.11
5.3.60.0110.03612.09
5.3.50.0100.03512.04
5.3.40.0070.03912.05
5.3.30.0080.04212.00
5.3.20.0110.04511.79
5.3.10.0100.03511.75
5.3.00.0060.04111.73
5.2.170.0040.0319.18
5.2.160.0050.0319.18
5.2.150.0050.0309.18
5.2.140.0090.0279.18
5.2.130.0050.0309.14
5.2.120.0070.0329.14
5.2.110.0080.0279.14
5.2.100.0040.0299.14
5.2.90.0050.0309.14
5.2.80.0060.0319.14
5.2.70.0050.0339.14
5.2.60.0070.0369.09
5.2.50.0080.0369.06
5.2.40.0090.0309.03
5.2.30.0060.0299.02
5.2.20.0040.0379.00
5.2.10.0070.0298.93
5.2.00.0070.0318.79
5.1.60.0050.0238.07
5.1.50.0040.0258.06
5.1.40.0090.0218.05
5.1.30.0050.0278.39
5.1.20.0040.0278.42
5.1.10.0030.0278.14
5.1.00.0030.0388.14
5.0.50.0050.0316.62
5.0.40.0100.0246.48
5.0.30.0030.0336.29
5.0.20.0040.0186.27
5.0.10.0040.0196.24
5.0.00.0040.0336.23
4.4.90.0030.0164.78
4.4.80.0040.0154.75
4.4.70.0050.0214.75
4.4.60.0040.0204.75
4.4.50.0040.0154.77
4.4.40.0020.0284.71
4.4.30.0040.0154.76
4.4.20.0030.0184.84
4.4.10.0010.0214.85
4.4.00.0040.0324.76
4.3.110.0080.0184.67
4.3.100.0030.0164.67
4.3.90.0020.0164.64
4.3.80.0050.0234.58
4.3.70.0020.0154.63
4.3.60.0000.0174.63
4.3.50.0020.0164.63
4.3.40.0020.0244.54
4.3.30.0010.0163.28
4.3.20.0030.0143.26
4.3.10.0020.0163.22
4.3.00.0030.02018.16

preferences:
49.94 ms | 401 KiB | 5 Q