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 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.0100.01016.50
8.3.50.0080.00823.00
8.3.40.0110.00418.71
8.3.30.0030.01019.18
8.3.20.0040.00420.16
8.3.10.0080.00318.73
8.3.00.0080.00019.51
8.2.180.0070.00716.63
8.2.170.0100.00322.96
8.2.160.0150.00620.49
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00520.89
8.2.110.0050.00522.26
8.2.100.0090.00317.72
8.2.90.0050.00317.84
8.2.80.0000.00819.20
8.2.70.0050.00317.80
8.2.60.0090.00017.93
8.2.50.0090.00018.10
8.2.40.0040.00420.59
8.2.30.0040.00419.49
8.2.20.0030.00517.69
8.2.10.0000.00718.00
8.2.00.0040.00417.84
8.1.280.0090.00625.92
8.1.270.0090.00022.05
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.55
8.1.230.0090.00321.02
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0050.00517.23
8.1.180.0030.00518.10
8.1.170.0000.00818.60
8.1.160.0040.00422.13
8.1.150.0070.00018.81
8.1.140.0040.00417.26
8.1.130.0030.00317.77
8.1.120.0000.00717.44
8.1.110.0050.00317.34
8.1.100.0050.00217.29
8.1.90.0030.00517.38
8.1.80.0040.00417.29
8.1.70.0030.00317.36
8.1.60.0000.00917.38
8.1.50.0000.00817.36
8.1.40.0050.00217.49
8.1.30.0040.00417.40
8.1.20.0000.00817.49
8.1.10.0000.00717.52
8.1.00.0030.00517.41
8.0.300.0030.00720.16
8.0.290.0030.00516.75
8.0.280.0070.00018.45
8.0.270.0030.00517.17
8.0.260.0000.00617.17
8.0.250.0040.00416.92
8.0.240.0050.00217.06
8.0.230.0000.00716.97
8.0.220.0040.00416.95
8.0.210.0000.00816.98
8.0.200.0030.00317.01
8.0.190.0070.00016.89
8.0.180.0070.00016.87
8.0.170.0000.00817.04
8.0.160.0070.00016.85
8.0.150.0070.00016.91
8.0.140.0060.00616.76
8.0.130.0000.00613.36
8.0.120.0060.00316.82
8.0.110.0000.00816.87
8.0.100.0040.00416.97
8.0.90.0000.00717.02
8.0.80.0100.00716.96
8.0.70.0000.00716.84
8.0.60.0040.00416.85
8.0.50.0040.00416.85
8.0.30.0100.00817.10
8.0.20.0100.01217.40
8.0.10.0070.00016.98
8.0.00.0130.00316.80
7.4.330.0000.00515.09
7.4.320.0000.00616.35
7.4.300.0060.00016.46
7.4.290.0040.00416.46
7.4.280.0080.00016.54
7.4.270.0070.00016.57
7.4.260.0000.00816.55
7.4.250.0000.00716.55
7.4.240.0020.00516.47
7.4.230.0000.00716.52
7.4.220.0030.01416.52
7.4.210.0070.00716.53
7.4.200.0050.00316.62
7.4.160.0110.00616.31
7.4.150.0130.00417.40
7.4.140.0130.00517.86
7.4.130.0080.00816.48
7.4.120.0120.00516.54
7.4.110.0100.00716.59
7.4.100.0060.01816.43
7.4.90.0090.00916.52
7.4.80.0060.01319.39
7.4.70.0110.00816.60
7.4.60.0030.01216.73
7.4.50.0000.00816.54
7.4.40.0060.01016.46
7.4.30.0150.00016.45
7.4.00.0070.01014.89
7.3.330.0030.00313.32
7.3.320.0050.00013.14
7.3.310.0000.00716.21
7.3.300.0070.00016.18
7.3.290.0040.01116.30
7.3.280.0060.01016.35
7.3.270.0070.01017.40
7.3.260.0060.01016.34
7.3.250.0150.00316.35
7.3.240.0090.01316.61
7.3.230.0060.01116.39
7.3.210.0140.00716.30
7.3.200.0120.00919.39
7.3.190.0030.01316.29
7.3.180.0100.00616.65
7.3.170.0130.01016.33
7.3.160.0130.00316.23
7.3.120.0070.00814.92
7.3.110.0090.00514.61
7.3.100.0060.00914.63
7.3.90.0040.01114.84
7.3.80.0100.00414.87
7.3.70.0050.00714.74
7.3.60.0090.00714.76
7.3.50.0050.01014.75
7.3.40.0050.00714.79
7.3.30.0060.00714.69
7.3.20.0050.00616.69
7.3.10.0090.00516.59
7.3.00.0050.00816.59
7.2.330.0150.00416.61
7.2.320.0130.00316.30
7.2.310.0070.01116.22
7.2.300.0070.01016.59
7.2.290.0060.01016.70
7.2.250.0100.01014.90
7.2.240.0080.00814.94
7.2.230.0070.00714.83
7.2.220.0060.00514.79
7.2.210.0070.00515.14
7.2.200.0060.01114.89
7.2.190.0030.01014.80
7.2.180.0080.00614.91
7.2.170.0060.00814.90
7.2.160.0110.00314.88
7.2.150.0060.00616.50
7.2.140.0110.00416.81
7.2.130.0030.01216.83
7.2.120.0070.00716.71
7.2.110.0100.00716.95
7.2.100.0070.01116.80
7.2.90.0100.00716.99
7.2.80.0060.00916.78
7.2.70.0110.00316.73
7.2.60.0070.00716.73
7.2.50.0070.00716.43
7.2.40.0100.00316.91
7.2.30.0070.01016.83
7.2.20.0000.01616.78
7.2.10.0040.00816.98
7.2.00.0050.01018.08
7.1.330.0050.00815.70
7.1.320.0070.00715.62
7.1.310.0040.00915.67
7.1.300.0020.01015.78
7.1.290.0040.00915.58
7.1.280.0030.01015.62
7.1.270.0070.00415.63
7.1.260.0030.00915.75
7.1.250.0030.00915.52
7.1.200.0030.01015.60
7.1.70.0070.00317.17
7.1.60.0130.01019.61
7.1.50.0040.01816.84
7.1.00.0000.08022.35
7.0.200.0040.00416.52
7.0.140.0030.07022.12
7.0.60.0100.08319.89
7.0.50.0000.04317.85
7.0.40.0070.05320.10
7.0.30.0300.05320.21
7.0.20.0130.06320.13
7.0.10.0030.04720.15
7.0.00.0030.09020.24
5.6.280.0030.07320.94
5.6.210.0030.04720.48
5.6.200.0130.05718.18
5.6.190.0070.04020.55
5.6.180.0370.04020.57
5.6.170.0200.06320.52
5.6.160.0030.07320.46
5.6.150.0070.06018.29
5.6.140.0000.08318.28
5.6.130.0000.06018.11
5.6.120.0200.07020.79
5.6.110.0030.04320.99
5.6.100.0100.06320.96
5.6.90.0170.07720.98
5.6.80.0200.05020.29
5.5.350.0230.07720.43
5.5.340.0070.08318.02
5.5.330.0130.08020.40
5.5.320.0400.03720.34
5.5.310.0200.03320.20
5.5.300.0000.04717.96
5.5.290.0130.07317.96
5.5.280.0100.07720.88
5.5.270.0070.08720.76
5.5.260.0170.04720.75
5.5.250.0030.04020.57
5.5.240.0170.08720.20
5.4.450.0170.05019.16
5.4.440.0570.03319.46
5.4.430.0800.05319.15
5.4.420.0570.04019.56
5.4.410.0200.04719.36
5.4.400.0400.04318.96
5.4.390.0270.04319.20
5.4.380.0200.06318.73
5.4.370.0400.03718.83
5.4.360.0100.06018.78
5.4.350.0370.04318.76
5.4.340.0200.05018.45
5.4.320.0050.03712.51
5.4.310.0100.04912.51
5.4.300.0080.03612.50
5.4.290.0080.03612.50
5.4.280.0070.03412.41
5.4.270.0100.03412.40
5.4.260.0090.03712.40
5.4.250.0060.03812.41
5.4.240.0080.03712.40
5.4.230.0070.03612.39
5.4.220.0060.03712.39
5.4.210.0090.03412.40
5.4.200.0040.04112.39
5.4.190.0050.04412.39
5.4.180.0100.03812.39
5.4.170.0140.03912.40
5.4.160.0080.04112.39
5.4.150.0070.03712.39
5.4.140.0060.04312.07
5.4.130.0110.03112.06
5.4.120.0050.03612.02
5.4.110.0110.03812.02
5.4.100.0130.04212.02
5.4.90.0100.04312.02
5.4.80.0050.03712.02
5.4.70.0040.03712.02
5.4.60.0060.03512.02
5.4.50.0090.03712.01
5.4.40.0090.03112.00
5.4.30.0100.04612.00
5.4.20.0090.03812.00
5.4.10.0030.03712.00
5.4.00.0020.03811.49
5.3.290.0060.04012.80
5.3.280.0040.03912.71
5.3.270.0080.03612.73
5.3.260.0050.04712.72
5.3.250.0130.04512.72
5.3.240.0080.04412.72
5.3.230.0080.04112.71
5.3.220.0050.04012.68
5.3.210.0080.05212.68
5.3.200.0060.04312.68
5.3.190.0090.03912.67
5.3.180.0100.04112.68
5.3.170.0040.04212.67
5.3.160.0090.03312.67
5.3.150.0070.04112.68
5.3.140.0020.03912.66
5.3.130.0060.03912.66
5.3.120.0090.03512.66
5.3.110.0070.03912.66
5.3.100.0100.03212.14
5.3.90.0080.03512.12
5.3.80.0080.03412.11
5.3.70.0070.03512.11
5.3.60.0080.03512.10
5.3.50.0060.03612.04
5.3.40.0070.03612.04
5.3.30.0040.03912.00
5.3.20.0070.03811.79
5.3.10.0050.03411.75
5.3.00.0080.03711.73
5.2.170.0070.0349.18
5.2.160.0060.0359.18
5.2.150.0070.0359.18
5.2.140.0060.0349.18
5.2.130.0050.0369.14
5.2.120.0100.0289.14
5.2.110.0030.0379.15
5.2.100.0060.0289.14
5.2.90.0110.0399.14
5.2.80.0050.0319.14
5.2.70.0030.0319.14
5.2.60.0060.0289.09
5.2.50.0040.0309.06
5.2.40.0070.0269.03
5.2.30.0080.0319.02
5.2.20.0060.0299.00
5.2.10.0090.0258.92
5.2.00.0040.0298.79
5.1.60.0080.0208.07
5.1.50.0060.0238.07
5.1.40.0070.0248.05
5.1.30.0060.0268.40
5.1.20.0050.0288.42
5.1.10.0080.0238.14
5.1.00.0050.0308.14
5.0.50.0050.0216.62
5.0.40.0040.0216.48
5.0.30.0060.0356.29
5.0.20.0070.0206.27
5.0.10.0060.0236.24
5.0.00.0060.0366.23
4.4.90.0030.0154.78
4.4.80.0050.0134.75
4.4.70.0040.0144.76
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0040.0144.76
4.4.20.0020.0164.84
4.4.10.0040.0144.85
4.4.00.0030.0244.76
4.3.110.0030.0154.67
4.3.100.0040.0204.66
4.3.90.0020.0154.64
4.3.80.0010.0264.58
4.3.70.0010.0164.63
4.3.60.0040.0144.63
4.3.50.0010.0174.63
4.3.40.0030.0244.53
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0020.0153.22
4.3.00.0030.01718.16

preferences:
50.81 ms | 401 KiB | 5 Q