3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class hello {} } namespace bar { use foo; class hello {} } namespace { $hello = new bar\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.70.0190.00316.50
8.3.60.0060.00916.59
8.3.50.0080.00716.34
8.3.40.0110.00318.60
8.3.30.0110.00418.54
8.3.20.0000.00720.09
8.3.10.0000.00823.58
8.3.00.0050.00319.56
8.2.180.0070.01416.75
8.2.170.0150.00422.96
8.2.160.0040.01118.88
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00819.27
8.2.120.0050.00226.35
8.2.110.0130.01022.29
8.2.100.0090.00317.91
8.2.90.0080.00018.98
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0050.00317.88
8.2.50.0090.00018.10
8.2.40.0000.00820.57
8.2.30.0070.00019.05
8.2.20.0000.00717.93
8.2.10.0040.00418.04
8.2.00.0040.00418.02
8.1.280.0110.00425.92
8.1.270.0040.00422.14
8.1.260.0070.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00921.15
8.1.230.0040.00719.03
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.25
8.1.190.0040.00417.11
8.1.180.0000.00718.10
8.1.170.0040.00418.67
8.1.160.0000.00718.88
8.1.150.0090.00218.82
8.1.140.0040.00419.51
8.1.130.0000.00718.69
8.1.120.0040.00417.43
8.1.110.0040.00417.27
8.1.100.0090.00317.33
8.1.90.0000.00817.37
8.1.80.0000.00717.29
8.1.70.0000.00717.34
8.1.60.0030.00617.54
8.1.50.0070.00017.37
8.1.40.0050.00517.47
8.1.30.0040.00417.59
8.1.20.0000.00817.49
8.1.10.0070.00017.50
8.1.00.0040.00417.46
8.0.300.0000.00819.61
8.0.290.0050.00216.75
8.0.280.0000.00718.24
8.0.270.0000.00817.19
8.0.260.0030.00318.52
8.0.250.0030.00316.91
8.0.240.0000.00716.83
8.0.230.0000.00716.93
8.0.220.0000.00816.73
8.0.210.0000.00716.85
8.0.200.0030.00316.80
8.0.190.0040.00416.90
8.0.180.0040.00416.84
8.0.170.0030.00316.82
8.0.160.0040.00416.82
8.0.150.0050.00216.71
8.0.140.0000.00716.75
8.0.130.0000.00513.18
8.0.120.0000.00716.69
8.0.110.0030.00316.64
8.0.100.0000.00716.66
8.0.90.0030.00516.68
8.0.80.0060.01316.83
8.0.70.0040.00416.65
8.0.60.0000.00716.76
8.0.50.0000.00716.68
8.0.30.0060.01016.99
8.0.20.0090.00917.40
8.0.10.0060.00316.83
8.0.00.0140.00316.61
7.4.330.0000.00515.55
7.4.320.0070.00016.32
7.4.300.0030.00316.49
7.4.290.0000.00716.57
7.4.280.0040.00416.34
7.4.270.0030.00316.38
7.4.260.0070.00016.48
7.4.250.0040.00416.40
7.4.240.0040.00416.53
7.4.230.0050.00316.62
7.4.220.0160.00316.39
7.4.210.0000.01316.45
7.4.200.0030.00316.27
7.4.160.0130.00316.26
7.4.150.0120.00617.40
7.4.140.0100.00917.86
7.4.130.0060.01216.54
7.4.120.0130.00516.35
7.4.110.0110.00616.39
7.4.100.0120.00616.48
7.4.90.0100.00716.25
7.4.80.0100.00619.39
7.4.70.0100.00816.43
7.4.60.0070.01316.48
7.4.50.0090.00316.27
7.4.40.0090.00916.23
7.4.30.0000.01616.17
7.4.00.0120.00414.64
7.3.330.0060.00013.09
7.3.320.0000.00513.00
7.3.310.0030.00316.21
7.3.300.0000.00716.18
7.3.290.0060.00816.14
7.3.280.0100.00616.18
7.3.270.0120.01217.40
7.3.260.0120.00516.33
7.3.250.0120.00616.33
7.3.240.0120.00716.14
7.3.230.0110.00716.23
7.3.210.0130.00416.11
7.3.200.0090.00916.12
7.3.190.0050.01116.21
7.3.180.0080.00816.14
7.3.170.0100.00616.14
7.3.160.0030.01216.38
7.2.330.0070.01016.21
7.2.320.0030.01316.36
7.2.310.0100.00716.42
7.2.300.0110.01116.34
7.2.290.0120.00416.41
7.2.60.0080.00816.96
7.2.00.0030.01319.44
7.1.200.0070.00715.43
7.1.100.0060.00617.75
7.1.70.0600.01415.08
7.1.60.0530.01633.28
7.1.50.0510.01032.85
7.1.40.0580.01732.23
7.1.30.0880.01232.29
7.1.20.0830.01532.63
7.1.10.0490.01614.61
7.1.00.0730.01614.78
7.0.200.0470.01214.82
7.0.190.0460.00714.67
7.0.180.0600.01314.20
7.0.170.0810.01814.19
7.0.160.0890.00714.46
7.0.150.0580.01314.22
7.0.140.0720.00814.37
7.0.130.0760.00514.63
7.0.120.0690.01014.63
7.0.110.0570.01014.31
7.0.100.0680.01614.54
7.0.90.0750.01014.29
7.0.80.0630.00714.54
7.0.70.0510.00514.35
7.0.60.0660.00313.94
7.0.50.0360.01714.45
7.0.40.1090.02016.26
7.0.30.0130.00616.50
7.0.20.0130.00316.20
7.0.10.0120.00716.40
7.0.00.0180.00316.05

preferences:
49.98 ms | 401 KiB | 5 Q