3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class X {} } namespace A\B { class Y {} } namespace { new \A\X(); new \A\B\Y(); }

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.5.00.0110.01119.85
8.4.150.0020.00014.05
8.4.140.0120.00817.24
8.4.130.0030.00818.84
8.4.120.0130.00617.56
8.4.110.0090.00619.48
8.4.100.0120.01017.60
8.4.90.0150.00520.66
8.4.80.0150.00518.96
8.4.70.0070.01318.77
8.4.60.0100.00618.80
8.4.50.0060.00320.10
8.4.40.0110.00719.24
8.4.30.0100.01017.51
8.4.20.0090.01219.09
8.4.10.0030.00717.37
8.3.280.0140.00918.18
8.3.270.0130.00616.55
8.3.260.0110.00816.52
8.3.250.0080.01016.49
8.3.240.0140.00516.34
8.3.230.0100.00916.44
8.3.220.0100.00918.83
8.3.210.0040.00316.39
8.3.200.0040.00716.45
8.3.190.0110.00716.99
8.3.180.0150.00519.01
8.3.170.0110.00718.82
8.3.160.0050.00318.16
8.3.150.0100.01019.10
8.3.140.0140.00320.51
8.3.130.0040.00418.08
8.3.120.0080.00018.91
8.3.110.0080.00020.94
8.3.100.0060.00316.50
8.3.90.0170.00326.77
8.3.80.0000.00918.30
8.3.70.0060.00916.50
8.3.60.0060.00918.18
8.3.50.0090.00717.32
8.3.40.0070.00718.40
8.3.30.0110.00318.54
8.3.20.0050.00321.72
8.3.10.0000.00821.82
8.3.00.0040.00421.82
8.2.290.0140.00416.80
8.2.280.0130.00620.19
8.2.270.0090.00916.54
8.2.260.0120.00317.23
8.2.250.0080.00016.48
8.2.240.0090.00018.93
8.2.230.0100.00022.58
8.2.220.0100.00024.06
8.2.210.0100.01026.77
8.2.200.0030.00616.75
8.2.190.0140.00716.58
8.2.180.0070.01416.35
8.2.170.0070.01022.96
8.2.160.0060.00819.01
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00419.27
8.2.120.0000.00726.35
8.2.110.0030.00619.39
8.2.100.0060.00617.66
8.2.90.0000.00818.93
8.2.80.0060.00317.97
8.2.70.0030.00619.10
8.2.60.0030.00617.68
8.2.50.0090.00018.10
8.2.40.0070.00020.50
8.2.30.0040.00419.11
8.2.20.0070.00017.91
8.2.10.0040.00417.85
8.2.00.0040.00418.09
8.1.330.0100.01015.80
8.1.320.0110.00718.01
8.1.310.0070.00016.52
8.1.300.0090.00619.44
8.1.290.0060.00330.84
8.1.280.0140.00725.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00721.03
8.1.230.0040.00720.26
8.1.220.0070.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0080.00018.77
8.1.150.0000.00718.71
8.1.140.0040.00419.03
8.1.130.0000.00717.46
8.1.120.0030.00317.34
8.1.110.0020.00517.39
8.1.100.0080.00017.29
8.1.90.0040.00417.34
8.1.80.0040.00417.30
8.1.70.0000.00817.22
8.1.60.0000.00817.38
8.1.50.0040.00417.39
8.1.40.0000.00817.27
8.1.30.0080.00017.35
8.1.20.0030.00517.52
8.1.10.0000.00717.52
8.1.00.0050.00517.44
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.27
8.0.270.0000.00717.19
8.0.260.0040.00417.24
8.0.250.0070.00016.90
8.0.240.0040.00416.88
8.0.230.0000.00716.68
8.0.220.0060.00316.76
8.0.210.0050.00216.64
8.0.200.0000.00616.78
8.0.190.0000.00816.80
8.0.180.0040.00416.80
8.0.170.0030.00616.71
8.0.160.0070.00016.75
8.0.150.0090.00016.74
8.0.140.0060.00316.68
8.0.130.0000.00513.19
8.0.120.0000.00716.60
8.0.110.0040.00416.66
8.0.100.0040.00416.82
8.0.90.0000.00816.54
8.0.80.0110.01116.68
8.0.70.0070.00016.65
8.0.60.0040.00416.61
8.0.50.0040.00416.76
8.0.30.0080.01116.88
8.0.20.0110.00817.40
8.0.10.0040.00416.94
8.0.00.0110.00516.55
7.4.330.0000.00515.55
7.4.320.0060.00016.51
7.4.300.0000.00716.38
7.4.290.0060.00316.35
7.4.280.0040.00416.50
7.4.270.0030.00316.25
7.4.260.0000.00816.24
7.4.250.0070.00016.25
7.4.240.0070.00016.38
7.4.230.0030.00316.27
7.4.220.0030.00516.39
7.4.210.0060.01216.41
7.4.200.0040.00416.49
7.4.160.0070.01116.33
7.4.150.0130.00917.40
7.4.140.0110.01117.86
7.4.130.0080.00816.45
7.4.120.0130.00616.36
7.4.110.0160.00616.31
7.4.100.0030.01316.35
7.4.90.0110.00616.19
7.4.80.0090.00919.39
7.4.70.0080.00816.45
7.4.60.0080.00816.32
7.4.50.0070.00316.45
7.4.40.0130.00316.30
7.4.10.0080.00915.37
7.4.00.0070.01115.21
7.3.330.0030.00313.01
7.3.320.0050.00013.18
7.3.310.0000.00616.21
7.3.300.0000.00716.05
7.3.290.0070.00916.14
7.3.280.0070.01016.16
7.3.270.0000.01917.40
7.3.260.0080.01116.21
7.3.250.0130.00516.35
7.3.240.0090.01216.38
7.3.230.0190.00316.43
7.3.210.0080.00816.46
7.3.200.0070.00916.50
7.3.190.0090.00616.36
7.3.180.0060.01616.33
7.3.170.0150.00416.39
7.3.160.0190.00316.18
7.3.130.0110.00815.16
7.3.120.0050.01015.05
7.3.110.0040.01215.05
7.3.100.0070.00815.18
7.3.90.0070.00814.97
7.3.80.0090.00415.15
7.3.70.0050.00615.18
7.3.60.0070.00814.99
7.3.50.0070.00515.04
7.3.40.0060.00914.94
7.3.30.0050.00915.11
7.3.20.0050.00717.01
7.3.10.0060.00616.96
7.3.00.0120.00217.03
7.2.330.0030.01416.51
7.2.320.0070.01016.32
7.2.310.0100.01016.23
7.2.300.0170.00016.36
7.2.290.0110.00716.48
7.2.260.0080.00815.26
7.2.250.0080.01115.18
7.2.240.0100.00415.25
7.2.230.0020.01115.15
7.2.220.0040.00915.37
7.2.210.0070.00815.20
7.2.200.0100.00415.26
7.2.190.0050.01015.29
7.2.180.0070.00615.17
7.2.170.0080.00615.21
7.2.160.0040.00815.36
7.2.150.0030.00917.33
7.2.140.0110.00117.44
7.2.130.0060.01117.37
7.2.120.0060.00517.28
7.2.110.0030.01217.39
7.2.100.0060.01017.22
7.2.90.0060.00817.36
7.2.80.0050.00917.22
7.2.70.0050.00917.41
7.2.60.0050.00817.12
7.2.50.0050.01017.27
7.2.40.0060.00517.36
7.2.30.0060.01117.41
7.2.20.0040.00917.61
7.2.10.0090.01117.33
7.2.00.0080.01017.41
7.1.330.0030.01016.13
7.1.320.0060.00915.93
7.1.310.0050.00616.19
7.1.300.0060.00815.97
7.1.290.0070.00516.02
7.1.280.0080.00716.00
7.1.270.0040.01116.07
7.1.260.0010.01216.00
7.1.250.0000.01216.34
7.1.240.0070.00516.45
7.1.230.0070.00716.22
7.1.220.0050.00716.28
7.1.210.0070.00416.25
7.1.200.0030.00816.15
7.1.190.0040.01116.10
7.1.180.0070.00516.16
7.1.170.0020.01316.20
7.1.160.0100.00216.40
7.1.150.0080.00716.28
7.1.140.0060.00616.30
7.1.130.0080.00516.25
7.1.120.0040.01216.24
7.1.110.0120.00616.27
7.1.100.0060.01216.14
7.1.90.0150.00416.11
7.1.80.0080.00916.08
7.1.70.0110.00415.88
7.1.60.0120.00921.96
7.1.50.0130.00821.70
7.1.40.0160.00521.69
7.1.30.0110.00821.62
7.1.20.0170.00521.60
7.1.10.0110.00615.75
7.1.00.0080.00615.53
7.0.330.0070.00715.89
7.0.320.0060.00315.99
7.0.310.0030.00915.81
7.0.300.0060.01215.95
7.0.290.0060.00716.05
7.0.280.0030.01216.03
7.0.270.0080.00715.89
7.0.260.0090.00415.95
7.0.250.0070.00716.04
7.0.240.0100.00515.99
7.0.230.0000.01415.88
7.0.220.0060.00416.10
7.0.210.0060.00515.99
7.0.200.0060.00715.98
7.0.190.0040.00816.00
7.0.180.0060.00615.92
7.0.170.0080.00416.00
7.0.160.0060.00316.04
7.0.150.0060.00515.94
7.0.140.0080.00616.01
7.0.130.0070.00816.07
7.0.120.0030.00915.93
7.0.110.0050.00615.99
7.0.100.0050.00916.11
7.0.90.0130.00216.10
7.0.80.0070.00615.90
7.0.70.0050.00716.03
7.0.60.0060.00615.92
7.0.50.0060.00616.10
7.0.40.0060.00413.88
7.0.30.0050.00513.90
7.0.20.0050.00813.94
7.0.10.0080.00513.98
7.0.00.0020.00913.71
5.6.400.0020.01315.17
5.6.390.0080.00614.81
5.6.380.0060.00814.88
5.6.370.0120.00214.79
5.6.360.0050.01014.84
5.6.350.0100.00914.93
5.6.340.0060.00914.96
5.6.330.0060.00614.93
5.6.320.0030.01214.77
5.6.310.0050.01115.05
5.6.300.0070.00514.77
5.6.290.0040.01114.70
5.6.280.0060.00515.14
5.6.270.0060.00615.04
5.6.260.0040.00914.92
5.6.250.0030.01015.03
5.6.240.0080.00915.08
5.6.230.0030.01114.88
5.6.220.0080.00514.83
5.6.210.0080.00614.73
5.6.200.0100.00514.90
5.6.190.0030.01114.86
5.6.180.0030.01014.88
5.6.170.0050.00915.04
5.6.160.0030.01114.70
5.6.150.0100.00514.82
5.6.140.0030.01014.79
5.6.130.0080.00514.95
5.6.120.0070.00814.91
5.6.110.0070.00714.76
5.6.100.0030.00814.96
5.6.90.0050.00514.77
5.6.80.0090.00714.75
5.6.70.0090.00314.85
5.6.60.0060.00714.85
5.6.50.0050.00814.76
5.6.40.0090.00714.86
5.6.30.0040.01114.89
5.6.20.0070.00514.90
5.6.10.0080.00314.68
5.6.00.0040.00614.53

preferences:
17.4 ms | 403 KiB | 5 Q