3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class hello {} } namespace bar { use foo; class hello {} } namespace { use bar\hello; $hello = new hello(); }

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.0080.00816.50
8.3.50.0110.00416.23
8.3.40.0180.00018.60
8.3.30.0000.01418.39
8.3.20.0040.00419.98
8.3.10.0080.00023.60
8.3.00.0050.00319.56
8.2.180.0150.00616.63
8.2.170.0150.00422.96
8.2.160.0120.00318.85
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00219.27
8.2.120.0080.00026.35
8.2.110.0030.00621.06
8.2.100.0040.00817.78
8.2.90.0000.00719.05
8.2.80.0060.00317.97
8.2.70.0030.00517.38
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0030.00620.42
8.2.30.0030.00720.85
8.2.20.0040.00417.86
8.2.10.0070.00018.03
8.2.00.0060.00317.98
8.1.280.0100.01025.92
8.1.270.0040.00422.07
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00921.21
8.1.230.0000.01118.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0040.00418.43
8.1.160.0000.00718.95
8.1.150.0000.01020.61
8.1.140.0020.00519.50
8.1.130.0000.00718.84
8.1.120.0000.00717.40
8.1.110.0000.00817.34
8.1.100.0090.00017.44
8.1.90.0000.00717.34
8.1.80.0070.00017.24
8.1.70.0000.00717.30
8.1.60.0030.00517.52
8.1.50.0040.00417.49
8.1.40.0000.00917.45
8.1.30.0050.00317.54
8.1.20.0040.00417.40
8.1.10.0070.00017.36
8.1.00.0030.00517.32
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0040.00418.33
8.0.270.0000.00717.09
8.0.260.0070.00018.61
8.0.250.0030.00316.72
8.0.240.0030.00316.78
8.0.230.0000.00716.90
8.0.220.0000.00716.84
8.0.210.0040.00416.70
8.0.200.0030.00316.88
8.0.190.0030.00516.79
8.0.180.0040.00416.85
8.0.170.0000.00716.86
8.0.160.0000.00716.89
8.0.150.0000.00716.67
8.0.140.0030.00316.83
8.0.130.0040.00413.21
8.0.120.0000.00716.68
8.0.110.0070.00016.73
8.0.100.0040.00416.87
8.0.90.0000.00716.69
8.0.80.0120.00916.77
8.0.70.0050.00216.83
8.0.60.0000.00716.71
8.0.50.0050.00216.80
8.0.30.0100.00816.95
8.0.20.0080.01017.40
8.0.10.0060.00316.81
8.0.00.0210.00316.61
7.4.330.0050.00015.55
7.4.320.0030.00316.32
7.4.300.0030.00316.53
7.4.290.0070.00016.35
7.4.280.0040.00416.53
7.4.270.0000.00716.47
7.4.260.0090.00016.43
7.4.250.0070.00016.35
7.4.240.0040.00416.53
7.4.230.0000.00716.51
7.4.220.0060.01216.52
7.4.210.0080.00816.52
7.4.200.0000.00716.40
7.4.160.0090.01016.36
7.4.150.0070.01117.40
7.4.140.0090.01017.86
7.4.130.0160.01016.27
7.4.120.0080.00916.37
7.4.110.0060.01016.41
7.4.100.0150.00316.50
7.4.90.0070.01416.22
7.4.80.0130.00319.39
7.4.70.0070.01016.39
7.4.60.0060.01116.47
7.4.50.0040.01116.42
7.4.40.0130.00316.32
7.4.30.0040.01216.50
7.4.00.0080.00914.77
7.3.330.0070.00013.17
7.3.320.0030.00313.02
7.3.310.0070.00016.17
7.3.300.0040.00416.11
7.3.290.0060.00816.11
7.3.280.0080.00816.15
7.3.270.0150.00417.40
7.3.260.0060.01116.23
7.3.250.0120.00516.13
7.3.240.0140.00616.24
7.3.230.0100.00616.24
7.3.210.0060.01116.14
7.3.200.0120.00416.52
7.3.190.0100.00616.30
7.3.180.0090.01216.39
7.3.170.0100.00716.47
7.3.160.0090.00616.40
7.3.120.0070.01214.59
7.3.110.0080.00814.64
7.3.100.0050.00914.57
7.3.90.0050.00714.78
7.3.80.0030.00814.63
7.3.70.0050.01214.51
7.3.60.0070.00714.71
7.3.50.0030.00914.71
7.3.40.0070.00714.51
7.3.30.0030.00714.51
7.3.20.0050.00816.57
7.3.10.0050.01016.49
7.3.00.0070.00316.54
7.2.330.0060.01316.57
7.2.320.0150.00816.39
7.2.310.0130.00316.57
7.2.300.0100.00716.37
7.2.290.0090.00716.50
7.2.250.0090.00914.99
7.2.240.0070.00914.94
7.2.230.0050.01114.91
7.2.220.0040.00714.78
7.2.210.0080.00514.83
7.2.200.0080.01114.88
7.2.190.0030.01014.76
7.2.180.0040.01114.80
7.2.170.0040.00915.00
7.2.160.0090.00614.97
7.2.150.0030.01416.92
7.2.140.0030.01316.41
7.2.130.0060.00616.72
7.2.120.0000.01516.70
7.2.110.0030.01316.76
7.2.100.0000.01516.74
7.2.90.0040.01117.02
7.2.80.0070.00716.92
7.2.70.0030.01016.82
7.2.60.0020.01116.69
7.2.50.0040.01116.68
7.2.40.0030.01316.55
7.2.30.0090.00616.74
7.2.20.0040.00816.81
7.2.10.0030.00616.74
7.2.00.0050.01118.10
7.1.330.0050.00815.64
7.1.320.0020.01015.57
7.1.310.0050.01015.58
7.1.300.0030.00815.54
7.1.290.0040.01115.52
7.1.280.0070.00515.52
7.1.270.0050.00615.54
7.1.260.0080.00515.51
7.1.250.0060.00615.57
7.1.240.0030.01015.38
7.1.230.0080.00615.54
7.1.220.0070.00315.51
7.1.210.0070.00415.47
7.1.200.0050.00715.46
7.1.190.0030.01015.39
7.1.180.0040.01115.63
7.1.170.0070.01015.70
7.1.160.0040.00715.34
7.1.150.0060.00915.34
7.1.140.0030.01015.73
7.1.130.0060.00615.68
7.1.120.0030.00715.52
7.1.110.0070.00715.55
7.1.100.0050.00616.88
7.1.90.0050.00515.32
7.1.80.0000.01015.65
7.1.70.0080.00816.09
7.1.60.0170.01325.26
7.1.50.0140.01325.08
7.1.40.0190.00924.88
7.1.30.0160.01324.95
7.1.20.0180.00924.98
7.1.10.0000.01616.17
7.1.00.0070.01216.08
7.0.330.0000.01515.25
7.0.320.0000.01015.19
7.0.310.0100.00315.41
7.0.300.0030.00615.37
7.0.290.0030.01015.29
7.0.280.0040.00415.23
7.0.270.0120.00015.11
7.0.260.0040.01114.91
7.0.250.0080.00015.17
7.0.240.0000.01315.41
7.0.230.0100.00315.41
7.0.220.0060.01015.22
7.0.210.0070.00715.30
7.0.200.0060.00916.05
7.0.190.0070.01015.97
7.0.180.0040.01115.64
7.0.170.0080.00715.76
7.0.160.0070.00915.53
7.0.150.0050.01115.61
7.0.140.0070.01015.69
7.0.130.0070.00815.86
7.0.120.0060.01215.80
7.0.110.0080.00915.79
7.0.100.0080.01015.82
7.0.90.0080.00815.74
7.0.80.0080.01015.77
7.0.70.0080.00915.74
7.0.60.0060.01215.61
7.0.50.0080.01015.77
7.0.40.0110.00814.66
7.0.30.0090.01014.75
7.0.20.0010.01114.76
7.0.10.0080.00714.89
7.0.00.0140.00614.80
5.6.400.0080.00414.54
5.6.390.0060.00614.25
5.6.380.0090.00614.47

preferences:
41.54 ms | 401 KiB | 5 Q