3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NS { class A { function test() { echo 'test'; } } } namespace NS2 { } namespace NS3 { class MyClass extends \B { function test() { echo 'test under MyClass'; } } } namespace NS4 { class_alias( 'NS\A', 'B' ); 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.40.0030.01018.86
8.3.30.0140.00018.84
8.3.20.0040.00420.33
8.3.10.0080.00418.73
8.3.00.0040.00419.38
8.2.170.0040.01122.96
8.2.160.0030.01220.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00421.10
8.2.110.0030.00620.47
8.2.100.0080.00418.22
8.2.90.0000.00818.97
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0050.00318.03
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0040.00419.50
8.2.20.0000.00917.63
8.2.10.0040.00418.04
8.2.00.0040.00417.66
8.1.270.0090.00021.93
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0060.00323.96
8.1.230.0060.00619.22
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0000.00817.35
8.1.180.0040.00418.79
8.1.170.0000.00818.37
8.1.160.0000.00722.02
8.1.150.0070.00018.86
8.1.140.0040.00417.30
8.1.130.0000.00717.76
8.1.120.0070.00017.36
8.1.110.0080.00017.42
8.1.100.0040.00417.29
8.1.90.0040.00417.44
8.1.80.0040.00417.31
8.1.70.0030.00317.26
8.1.60.0040.00417.45
8.1.50.0000.00917.31
8.1.40.0000.00717.46
8.1.30.0000.00817.58
8.1.20.0040.00417.53
8.1.10.0040.00417.54
8.1.00.0040.00417.44
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0040.00418.45
8.0.270.0030.00317.21
8.0.260.0070.00017.29
8.0.250.0070.00017.09
8.0.240.0050.00316.95
8.0.230.0000.00717.02
8.0.220.0000.00716.92
8.0.210.0030.00316.80
8.0.200.0070.00017.04
8.0.190.0030.00517.02
8.0.180.0040.00416.87
8.0.170.0000.00716.94
8.0.160.0040.00417.05
8.0.150.0030.00516.76
8.0.140.0090.00316.89
8.0.130.0060.00013.34
8.0.120.0000.00816.94
8.0.110.0000.00816.91
8.0.100.0000.00717.02
8.0.90.0000.00716.86
8.0.80.0100.00616.95
8.0.70.0000.00717.00
8.0.60.0000.00717.02
8.0.50.0040.00416.91
8.0.30.0130.00617.07
8.0.20.0170.00717.40
8.0.10.0040.00417.01
8.0.00.0170.00516.81
7.4.330.0020.00215.00
7.4.320.0030.00316.42
7.4.300.0060.00016.45
7.4.290.0070.00016.45
7.4.280.0080.00016.44
7.4.270.0000.00716.57
7.4.260.0030.00316.42
7.4.250.0000.00716.51
7.4.240.0040.00316.49
7.4.230.0000.00716.34
7.4.220.0090.00916.49
7.4.210.0030.01016.58
7.4.200.0030.00316.51
7.4.160.0130.00316.29
7.4.150.0090.00917.40
7.4.140.0080.01317.86
7.4.130.0150.00116.51
7.4.120.0060.01116.65
7.4.110.0030.01416.51
7.4.100.0150.00316.60
7.4.90.0090.00716.62
7.4.80.0090.01219.39
7.4.70.0100.00616.28
7.4.60.0090.00916.43
7.4.50.0000.00516.13
7.4.40.0000.01716.49
7.4.30.0120.00716.57
7.4.00.0090.00714.90
7.3.330.0000.00513.32
7.3.320.0020.00213.02
7.3.310.0070.00016.34
7.3.300.0030.00316.29
7.3.290.0070.00716.28
7.3.280.0110.00716.33
7.3.270.0040.01517.40
7.3.260.0070.01116.35
7.3.250.0090.01216.46
7.3.240.0090.00916.47
7.3.230.0090.00816.39
7.3.210.0040.01416.28
7.3.200.0090.01519.39
7.3.190.0070.01416.52
7.3.180.0060.00916.55
7.3.170.0130.00516.58
7.3.160.0060.00916.36
7.3.120.0130.00614.60
7.3.110.0030.01314.94
7.3.100.0090.00414.67
7.3.90.0110.00014.84
7.3.80.0070.00714.65
7.3.70.0100.00714.88
7.3.60.0030.00614.55
7.3.50.0070.00714.68
7.3.40.0000.00914.54
7.3.30.0130.00014.82
7.3.20.0070.00316.74
7.3.10.0000.01416.63
7.3.00.0030.01116.74
7.2.330.0070.01016.59
7.2.320.0110.01116.65
7.2.310.0090.00916.57
7.2.300.0070.01016.70
7.2.290.0080.00816.55
7.2.250.0090.00914.62
7.2.240.0040.01415.10
7.2.230.0070.01014.46
7.2.220.0040.01115.09
7.2.210.0060.00614.82
7.2.200.0030.01214.71
7.2.190.0000.01114.82
7.2.180.0130.00314.63
7.2.170.0030.01214.66
7.2.130.0030.01016.81
7.2.120.0060.00616.81
7.2.110.0040.00816.72
7.2.100.0020.01416.62
7.2.90.0110.00416.54
7.2.80.0040.00816.80
7.2.70.0030.01016.86
7.2.60.0050.00916.79
7.2.50.0090.00516.56
7.2.40.0090.00516.63
7.2.30.0050.01016.75
7.2.20.0070.00516.57
7.2.10.0020.01216.59
7.2.00.0040.00717.51
7.1.330.0030.01015.59
7.1.320.0070.00715.77
7.1.310.0060.01015.53
7.1.300.0060.00315.48
7.1.290.0030.01015.85
7.1.280.0060.00615.53
7.1.270.0030.01015.60
7.1.260.0030.00715.28
7.1.250.0090.00515.53
7.1.240.0060.00315.64
7.1.230.0030.00815.40
7.1.220.0020.01115.59
7.1.210.0070.00515.44
7.1.200.0040.00615.53
7.1.190.0040.00915.52
7.1.180.0080.00515.57
7.1.170.0030.00915.56
7.1.160.0100.00615.43
7.1.150.0070.00515.70
7.1.140.0040.00915.25
7.1.130.0050.00815.53
7.1.120.0060.00715.66
7.1.110.0020.00915.75
7.1.100.0070.00315.54
7.1.90.0080.00715.24
7.1.80.0060.00815.54
7.1.70.0040.00716.03
7.1.60.0070.00816.81
7.1.50.0060.00715.99
7.1.40.0080.00515.57
7.1.30.0050.00715.59
7.1.20.0060.00615.58
7.1.10.0030.00815.56
7.1.00.0060.03017.80
7.0.330.0020.00815.19
7.0.320.0060.00615.23
7.0.310.0110.00315.10
7.0.300.0020.01015.28
7.0.290.0030.00615.12
7.0.280.0060.00615.07
7.0.270.0050.00915.21
7.0.260.0080.00715.05
7.0.250.0090.00515.15
7.0.240.0090.00515.43
7.0.230.0060.00815.09
7.0.220.0070.00815.25
7.0.210.0050.00815.18
7.0.200.0100.00814.87
7.0.190.0080.00715.03
7.0.180.0070.00415.20
7.0.170.0050.00915.25
7.0.160.0030.00815.27
7.0.150.0000.01115.17
7.0.140.0050.02817.48
7.0.130.0060.00815.12
7.0.120.0090.00315.02
7.0.110.0070.00515.31
7.0.100.0020.01015.21
7.0.90.0050.00815.27
7.0.80.0080.00715.20
7.0.70.0030.00815.20
7.0.60.0060.02516.74
7.0.50.0050.02216.13
7.0.40.0030.02815.51
7.0.30.0120.02215.63
7.0.20.0150.03015.60
7.0.10.0050.02615.60
7.0.00.0040.03115.53
5.6.380.0050.00814.18
5.6.370.0060.00714.32
5.6.360.0070.00514.11
5.6.350.0090.00514.39
5.6.340.0030.00913.71
5.6.330.0100.00314.03
5.6.320.0110.00314.22
5.6.310.0040.00814.32
5.6.300.0070.00514.42
5.6.290.0040.00814.10
5.6.280.0080.02416.46
5.6.270.0000.00814.22
5.6.260.0030.01014.20
5.6.250.0080.00814.31
5.6.240.0070.00514.36
5.6.230.0090.00214.09
5.6.220.0070.00514.13
5.6.210.0040.03516.01
5.6.200.0070.03415.49
5.6.190.0070.03216.17
5.6.180.0130.01716.33
5.6.170.0200.02616.22
5.6.160.0050.01916.27
5.6.150.0110.02615.34
5.6.140.0100.02915.47
5.6.130.0050.02415.49
5.6.120.0060.03316.54
5.6.110.0080.02516.49
5.6.100.0110.02916.40
5.6.90.0080.03116.50
5.6.80.0090.02316.03
5.6.70.1530.01916.18
5.6.60.0080.00614.14
5.6.50.0040.00813.91
5.6.40.0090.00513.86
5.6.30.0090.00514.07
5.6.20.0090.00514.01
5.6.10.0060.00614.09
5.6.00.0090.00514.10
5.5.380.0060.00510.93
5.5.370.0040.00710.81
5.5.360.0030.00810.91
5.5.350.0130.02613.97
5.5.340.0090.02713.17
5.5.330.0040.01514.04
5.5.320.0120.02713.92
5.5.310.0200.02514.00
5.5.300.0060.01813.21
5.5.290.0060.01713.27
5.5.280.0060.03214.17
5.5.270.0070.03214.17
5.5.260.0030.02714.16
5.5.250.0060.02913.93
5.5.240.0120.02813.92
5.5.230.0020.00510.86
5.5.220.0060.00410.96
5.5.210.0020.00810.73
5.5.200.0020.00810.88
5.5.190.0080.00010.75
5.5.180.0070.00310.91
5.5.170.0070.00310.87
5.5.160.0060.00510.84
5.5.150.0070.00210.97
5.5.140.0070.00411.05
5.5.130.0020.00811.00
5.5.120.0000.00711.00
5.5.110.0050.00410.96
5.5.100.0040.00610.77
5.5.90.0060.00310.86
5.5.80.0030.00910.85
5.5.70.0010.00611.03
5.5.60.0050.00410.79
5.5.50.0030.00510.92
5.5.40.0050.00510.83
5.5.30.0030.00610.62
5.5.20.0040.00510.65
5.5.10.0060.00510.73
5.5.00.0020.00810.59
5.4.450.0050.01813.66
5.4.440.0090.01713.82
5.4.430.0190.01813.68
5.4.420.0120.01913.67
5.4.410.0110.02113.44
5.4.400.0130.01813.68
5.4.390.0170.01813.45
5.4.380.0130.02313.28
5.4.370.0080.02013.44
5.4.360.0110.02213.42
5.4.350.0160.01913.33
5.4.340.0100.02213.25
5.4.330.0020.00810.78
5.4.320.0040.01611.38
5.4.310.0050.01811.35
5.4.300.0060.01511.31
5.4.290.0040.02011.33
5.4.280.0060.01611.28
5.4.270.0050.02111.35
5.4.260.0100.01311.35
5.4.250.0040.01611.28
5.4.240.0040.01811.30
5.4.230.0090.01511.32
5.4.220.0050.01711.15
5.4.210.0020.01711.34
5.4.200.0060.01611.23
5.4.190.0060.01411.34
5.4.180.0050.01511.33
5.4.170.0070.01511.20
5.4.160.0050.01611.28
5.4.150.0050.01611.27
5.4.140.0040.01911.20
5.4.130.0050.01711.24
5.4.120.0040.01711.28
5.4.110.0040.01511.19
5.4.100.0030.01611.20
5.4.90.0050.01611.20
5.4.80.0050.01411.18
5.4.70.0040.01511.24
5.4.60.0060.01611.01
5.4.50.0030.01611.20
5.4.40.0060.01711.16
5.4.30.0070.01511.17
5.4.20.0070.01511.16
5.4.10.0060.01411.08
5.4.00.0030.01710.84
5.3.290.0060.01811.23
5.3.280.0040.01611.15
5.3.270.0070.01611.18
5.3.260.0070.01811.19
5.3.250.0030.01911.11
5.3.240.0030.01911.13
5.3.230.0040.01611.09
5.3.220.0050.01711.12
5.3.210.0070.01711.04
5.3.200.0050.01511.18
5.3.190.0040.02211.10
5.3.180.0040.01911.19
5.3.170.0060.01511.20
5.3.160.0030.01711.14
5.3.150.0060.01611.14
5.3.140.0040.01911.15
5.3.130.0040.01711.17
5.3.120.0050.01811.17
5.3.110.0060.01711.11
5.3.100.0060.01611.00
5.3.90.0020.01911.02
5.3.80.0050.01510.96
5.3.70.0040.01510.97
5.3.60.0020.01910.92
5.3.50.0050.01410.92
5.3.40.0040.01810.86
5.3.30.0040.01610.88
5.3.20.0040.01810.81
5.3.10.0040.01810.73
5.3.00.0030.02010.77
5.2.170.0060.0149.88
5.2.160.0040.0169.88
5.2.150.0040.0139.88
5.2.140.0040.0139.88
5.2.130.0020.0159.86
5.2.120.0040.0139.86
5.2.110.0030.0179.86
5.2.100.0050.0139.86
5.2.90.0040.0149.86
5.2.80.0050.0129.86
5.2.70.0040.0159.86
5.2.60.0060.0119.84
5.2.50.0040.0129.84
5.2.40.0030.0149.82
5.2.30.0040.0129.82
5.2.20.0020.0139.82
5.2.10.0040.0129.79
5.2.00.0010.0149.74
5.1.60.0030.0119.50
5.1.50.0040.0129.50
5.1.40.0040.0129.50
5.1.30.0020.0129.62
5.1.20.0040.0149.62
5.1.10.0020.0129.53
5.1.00.0050.0099.53
5.0.50.0030.0109.02
5.0.40.0040.0098.97
5.0.30.0010.0148.91
5.0.20.0030.0118.90
5.0.10.0010.0118.89
5.0.00.0030.0148.89
4.4.90.0050.0078.41
4.4.80.0030.0088.40
4.4.70.0040.0068.40
4.4.60.0040.0078.40
4.4.50.0010.0088.40
4.4.40.0020.0118.38
4.4.30.0020.0078.40
4.4.20.0030.0078.43
4.4.10.0010.0088.43
4.4.00.0010.0128.40
4.3.110.0010.0108.37
4.3.100.0020.0088.37
4.3.90.0030.0078.36
4.3.80.0010.0138.34
4.3.70.0010.0088.36
4.3.60.0020.0078.36
4.3.50.0020.0088.36
4.3.40.0030.0118.33
4.3.30.0010.0097.91
4.3.20.0030.0097.90
4.3.10.0030.0097.89
4.3.00.0040.00712.87

preferences:
67.98 ms | 400 KiB | 5 Q