3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NS { class A { function test() { echo 'test'; } } } namespace NS2 { } namespace NS3 { class_alias( 'NS\A', 'B' ); class MyClass extends \B { function test() { echo 'test under MyClass'; } } } namespace NS4 { function foo (\NS\A $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.0100.01016.50
8.3.50.0130.00722.93
8.3.40.0070.00718.71
8.3.30.0140.00019.07
8.3.20.0040.00420.22
8.3.10.0100.00018.58
8.3.00.0090.00019.16
8.2.180.0140.00016.63
8.2.170.0110.00422.96
8.2.160.0150.00020.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00720.88
8.2.110.0000.01120.52
8.2.100.0040.00717.91
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0000.00817.92
8.2.50.0080.00018.07
8.2.40.0040.00418.16
8.2.30.0040.00419.31
8.2.20.0040.00417.55
8.2.10.0000.00717.99
8.2.00.0070.00017.58
8.1.280.0150.00925.92
8.1.270.0030.00624.01
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0000.01219.05
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0030.00717.00
8.1.190.0080.00017.23
8.1.180.0080.00018.89
8.1.170.0000.00818.57
8.1.160.0070.00022.07
8.1.150.0070.00018.70
8.1.140.0060.00317.39
8.1.130.0030.00317.81
8.1.120.0070.00017.42
8.1.110.0060.00317.36
8.1.100.0040.00417.38
8.1.90.0040.00417.30
8.1.80.0000.00717.41
8.1.70.0070.00017.37
8.1.60.0040.00417.52
8.1.50.0030.00517.36
8.1.40.0040.00417.50
8.1.30.0000.00817.61
8.1.20.0080.00017.43
8.1.10.0040.00417.45
8.1.00.0060.00317.44
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0000.00718.39
8.0.270.0000.00717.19
8.0.260.0040.00417.26
8.0.250.0030.00317.02
8.0.240.0000.00717.02
8.0.230.0050.00216.89
8.0.220.0020.00516.90
8.0.210.0030.00316.79
8.0.200.0000.00716.95
8.0.190.0030.00316.98
8.0.180.0030.00516.97
8.0.170.0020.00516.89
8.0.160.0000.00816.89
8.0.150.0050.00316.81
8.0.140.0000.01016.84
8.0.130.0000.00513.28
8.0.120.0060.00316.88
8.0.110.0000.00716.88
8.0.100.0000.00716.75
8.0.90.0000.00716.67
8.0.80.0060.01216.86
8.0.70.0040.00416.88
8.0.60.0050.00316.87
8.0.50.0000.00716.93
8.0.30.0120.01016.98
8.0.20.0070.01417.40
8.0.10.0040.00417.00
8.0.00.0100.00916.71
7.4.330.0060.00015.00
7.4.320.0000.00616.40
7.4.300.0000.00716.35
7.4.290.0040.00416.42
7.4.280.0050.00316.54
7.4.270.0000.00716.44
7.4.260.0000.00716.47
7.4.250.0040.00416.40
7.4.240.0020.00616.52
7.4.230.0030.00316.36
7.4.220.0110.00616.39
7.4.210.0120.00316.47
7.4.200.0030.00316.42
7.4.160.0100.00616.37
7.4.150.0070.01717.40
7.4.140.0130.00817.86
7.4.130.0090.00916.52
7.4.120.0110.01116.47
7.4.110.0100.00716.41
7.4.100.0030.01516.66
7.4.90.0060.01216.56
7.4.80.0070.01119.39
7.4.70.0090.00916.42
7.4.60.0140.00316.30
7.4.50.0040.00016.36
7.4.40.0090.00916.49
7.4.30.0090.00616.55
7.4.00.0100.00615.13
7.3.330.0000.00513.25
7.3.320.0000.00513.17
7.3.310.0030.00316.35
7.3.300.0030.00316.27
7.3.290.0110.00316.31
7.3.280.0050.01116.31
7.3.270.0160.00917.40
7.3.260.0120.01016.54
7.3.250.0050.01616.45
7.3.240.0130.00416.35
7.3.230.0200.00316.39
7.3.210.0070.01116.53
7.3.200.0040.01219.39
7.3.190.0150.00716.45
7.3.180.0070.00816.44
7.3.170.0120.00916.37
7.3.160.0100.00616.30
7.3.10.0070.00716.32
7.3.00.0040.00816.73
7.2.330.0060.01116.66
7.2.320.0060.01716.77
7.2.310.0060.01216.36
7.2.300.0110.01116.61
7.2.290.0060.01016.65
7.2.130.0090.00616.58
7.2.120.0100.00317.03
7.2.110.0090.00616.56
7.2.100.0110.00316.89
7.2.90.0100.00316.79
7.2.80.0090.00616.57
7.2.70.0090.00616.80
7.2.60.0000.01516.69
7.2.50.0000.01216.75
7.2.40.0040.01216.41
7.2.30.0040.01416.83
7.2.20.0060.00916.72
7.2.10.0090.00616.52
7.2.00.0040.01018.02
7.1.250.0060.00315.79
7.1.240.0040.01115.64
7.1.230.0060.00915.53
7.1.220.0070.00715.65
7.1.210.0100.00315.54
7.1.200.0030.01015.72
7.1.190.0040.01115.32
7.1.180.0150.00415.46
7.1.170.0080.00615.64
7.1.160.0030.00615.32
7.1.150.0070.01015.74
7.1.140.0030.01015.54
7.1.130.0000.01015.38
7.1.120.0110.00315.16
7.1.110.0060.01015.58
7.1.100.0050.00916.88
7.1.90.0030.01015.79
7.1.80.0030.01015.48
7.1.70.0060.00816.04
7.1.60.0060.00816.44
7.1.50.0100.00616.32
7.1.40.0100.00615.76
7.1.30.0160.00015.45
7.1.20.0060.00315.69
7.1.10.0030.01215.49
7.1.00.0070.04018.97
7.0.330.0000.01215.23
7.0.320.0060.00315.12
7.0.310.0060.00615.26
7.0.300.0040.00715.30
7.0.290.0070.00715.18
7.0.280.0090.00615.18
7.0.270.0040.00814.96
7.0.260.0030.00615.03
7.0.250.0110.00415.33
7.0.240.0090.00615.08
7.0.230.0000.01415.31
7.0.220.0110.00415.46
7.0.210.0090.00314.89
7.0.200.0030.00816.10
7.0.190.0000.01315.32
7.0.180.0060.00315.34
7.0.170.0000.00915.25
7.0.160.0100.00315.21
7.0.150.0150.00415.08
7.0.140.0050.04318.59
7.0.130.0000.01214.85
7.0.120.0060.00615.33
7.0.110.0060.00615.41
7.0.100.0040.01115.16
7.0.90.0080.00015.28
7.0.80.0100.00315.20
7.0.70.0000.01415.34
7.0.60.0060.03217.57
7.0.50.0020.03116.54
7.0.40.0050.02716.72
7.0.30.0260.03616.78
7.0.20.0160.03516.69
7.0.10.0130.04216.68
7.0.00.0050.04316.54
5.6.380.0070.00714.03
5.6.370.0030.00914.17
5.6.360.0040.00414.25
5.6.350.0030.00614.07
5.6.340.0060.00914.09
5.6.330.0110.00414.22
5.6.320.0060.00914.07
5.6.310.0000.01214.20
5.6.300.0070.00714.30
5.6.290.0040.01114.17
5.6.280.0100.03517.48
5.6.270.0070.00713.89
5.6.260.0060.01014.32
5.6.250.0100.00713.98
5.6.240.0030.00913.90
5.6.230.0090.00313.91
5.6.220.0030.01014.11
5.6.210.0070.03117.43
5.6.200.0050.03316.12
5.6.190.0050.02317.32
5.6.180.0220.04117.21
5.6.170.0150.02517.21
5.6.160.0120.02717.30
5.6.150.0080.04316.20
5.6.140.0150.03716.25
5.6.130.0070.02716.11
5.6.120.0050.02517.61
5.6.110.0090.02017.47
5.6.100.0080.04217.52
5.6.90.0150.03817.48
5.6.80.0070.03817.13
5.6.70.0060.00314.08
5.6.60.0000.01413.86
5.6.50.0040.01113.75
5.6.40.0040.01314.45
5.6.30.0130.00613.69
5.6.20.0190.01214.13
5.6.10.0060.01213.92
5.6.00.0040.01214.06
5.5.380.0060.00010.85
5.5.370.0090.00310.80
5.5.360.0030.01011.13
5.5.350.0100.04915.74
5.5.340.0100.04214.49
5.5.330.0080.04315.60
5.5.320.0130.02515.44
5.5.310.0150.02415.49
5.5.300.0030.04814.62
5.5.290.0090.04314.43
5.5.280.0100.04215.69
5.5.270.0030.02515.84
5.5.260.0050.03315.89
5.5.250.0050.02615.71
5.5.240.0110.01615.58
5.5.230.0060.00610.57
5.5.220.0030.01010.89
5.5.210.0030.00710.96
5.5.200.0030.00310.93
5.5.190.0040.00710.82
5.5.180.0070.00710.99
5.5.170.0000.01411.04
5.5.160.0000.00710.80
5.5.150.0000.00910.72
5.5.140.0000.00911.01
5.5.130.0040.00710.98
5.5.120.0130.00310.84
5.5.110.0060.00610.96
5.5.100.0110.00410.36
5.5.90.0050.00210.37
5.5.80.0040.00710.96
5.5.70.0110.00710.77
5.5.60.0090.00911.00
5.5.50.0060.00610.80
5.5.40.0090.00910.89
5.5.30.0160.00011.03
5.5.20.0140.00011.04
5.5.10.0030.00910.97
5.5.00.0110.00011.05
5.4.450.0100.02015.24
5.4.440.0120.02515.18
5.4.430.0180.02315.36
5.4.420.0250.02815.16
5.4.410.0100.02115.23
5.4.400.0380.02014.90
5.4.390.0200.02315.03
5.4.380.0150.03814.90
5.4.370.0130.03214.70
5.4.360.0180.02914.92
5.4.350.0210.02814.65
5.4.340.0210.03314.82
5.4.330.0140.00211.00
5.4.320.0060.02611.67
5.4.310.0100.02411.73
5.4.300.0070.02411.62
5.4.290.0060.02211.69
5.4.280.0100.02211.61
5.4.270.0090.01811.67
5.4.260.0110.01911.61
5.4.250.0040.02711.61
5.4.240.0120.02011.61
5.4.230.0080.02111.67
5.4.220.0100.02311.70
5.4.210.0060.02011.57
5.4.200.0060.02411.64
5.4.190.0110.02311.42
5.4.180.0110.02011.64
5.4.170.0050.03411.59
5.4.160.0070.02311.60
5.4.150.0040.02611.60
5.4.140.0050.02711.37
5.4.130.0090.02111.43
5.4.120.0070.02311.32
5.4.110.0060.02211.56
5.4.100.0050.02311.19
5.4.90.0080.02311.28
5.4.80.0060.02311.42
5.4.70.0050.02711.44
5.4.60.0020.02411.38
5.4.50.0040.02611.35
5.4.40.0040.02111.46
5.4.30.0100.02611.39
5.4.20.0040.02211.40
5.4.10.0060.02211.44
5.4.00.0080.01911.01
5.3.290.0070.02311.65
5.3.280.0120.02511.60
5.3.270.0090.02811.52
5.3.260.0040.02411.63
5.3.250.0050.02311.65
5.3.240.0070.02711.59
5.3.230.0040.02911.61
5.3.220.0060.02511.54
5.3.210.0080.02711.50
5.3.200.0060.02511.41
5.3.190.0070.02411.55
5.3.180.0060.02811.49
5.3.170.0040.02511.53
5.3.160.0040.02511.67
5.3.150.0030.02611.64
5.3.140.0100.02511.60
5.3.130.0060.02511.52
5.3.120.0030.02511.59
5.3.110.0060.02411.61
5.3.100.0090.01811.29
5.3.90.0070.03311.19
5.3.80.0080.02011.12
5.3.70.0080.02311.26
5.3.60.0050.02311.32
5.3.50.0070.02411.23
5.3.40.0060.02511.25
5.3.30.0050.02411.14
5.3.20.0100.02211.16
5.3.10.0050.02411.00
5.3.00.0050.02210.88
5.2.170.0060.0219.23
5.2.160.0020.0209.14
5.2.150.0060.0209.30
5.2.140.0040.0229.21
5.2.130.0060.0219.06
5.2.120.0070.0189.06
5.2.110.0050.0179.18
5.2.100.0060.0219.20
5.2.90.0050.0179.08
5.2.80.0020.0199.06
5.2.70.0100.0149.15
5.2.60.0030.0189.10
5.2.50.0050.0179.20
5.2.40.0060.0159.19
5.2.30.0040.0239.07
5.2.20.0040.0179.04
5.2.10.0060.0158.95
5.2.00.0050.0228.88
5.1.60.0080.0218.53
5.1.50.0070.0148.52
5.1.40.0070.0148.52
5.1.30.0040.0188.69
5.1.20.0020.0228.70
5.1.10.0040.0178.56
5.1.00.0060.0188.56
5.0.50.0050.0147.80
5.0.40.0050.0147.73
5.0.30.0090.0227.63
5.0.20.0030.0147.62
5.0.10.0070.0147.61
5.0.00.0040.0207.61
4.4.90.0040.0136.88
4.4.80.0060.0116.87
4.4.70.0020.0156.87
4.4.60.0040.0136.87
4.4.50.0040.0116.88
4.4.40.0020.0206.85
4.4.30.0050.0116.87
4.4.20.0050.0146.91
4.4.10.0040.0146.91
4.4.00.0040.0206.87
4.3.110.0050.0136.83
4.3.100.0060.0126.82
4.3.90.0060.0116.81
4.3.80.0060.0136.78
4.3.70.0050.0146.80
4.3.60.0060.0106.80
4.3.50.0050.0096.80
4.3.40.0020.0186.76
4.3.30.0030.0156.13
4.3.20.0010.0106.12
4.3.10.0020.0106.10
4.3.00.0030.01013.57

preferences:
47.64 ms | 400 KiB | 5 Q