3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class hello {} } namespace bar { use foo; class hello {} } namespace { use bar; }

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.0110.00416.75
8.3.50.0170.00316.23
8.3.40.0070.00718.71
8.3.30.0140.00018.48
8.3.20.0050.00220.36
8.3.10.0080.00023.48
8.3.00.0050.00319.43
8.2.180.0120.00616.63
8.2.170.0130.00722.96
8.2.160.0110.00418.89
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0030.00619.02
8.2.120.0040.00426.35
8.2.110.0090.00020.53
8.2.100.0090.00317.72
8.2.90.0090.00019.08
8.2.80.0000.00817.97
8.2.70.0030.00517.25
8.2.60.0050.00317.80
8.2.50.0050.00318.10
8.2.40.0040.00420.46
8.2.30.0050.00320.91
8.2.20.0000.00817.94
8.2.10.0070.00017.84
8.2.00.0000.00817.83
8.1.280.0130.00725.92
8.1.270.0050.00223.99
8.1.260.0050.00526.35
8.1.250.0070.00028.09
8.1.240.0030.00622.08
8.1.230.0030.01019.08
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0050.00317.10
8.1.180.0080.00018.10
8.1.170.0000.00818.54
8.1.160.0030.00319.00
8.1.150.0060.00318.66
8.1.140.0000.00819.45
8.1.130.0030.00318.70
8.1.120.0030.00317.39
8.1.110.0030.00617.18
8.1.100.0050.00517.34
8.1.90.0030.00417.22
8.1.80.0030.00517.36
8.1.70.0000.00717.23
8.1.60.0000.00817.48
8.1.50.0080.00017.37
8.1.40.0060.00317.42
8.1.30.0040.00417.43
8.1.20.0000.00917.53
8.1.10.0040.00417.42
8.1.00.0050.00217.20
8.0.300.0040.00419.96
8.0.290.0070.00016.63
8.0.280.0000.00718.34
8.0.270.0000.00717.12
8.0.260.0030.00318.27
8.0.250.0030.00316.88
8.0.240.0070.00016.90
8.0.230.0000.00716.77
8.0.220.0060.00016.87
8.0.210.0040.00416.71
8.0.200.0030.00316.88
8.0.190.0060.00316.88
8.0.180.0040.00416.84
8.0.170.0040.00416.74
8.0.160.0030.00416.91
8.0.150.0070.00016.69
8.0.140.0000.00716.76
8.0.130.0000.00513.25
8.0.120.0000.00816.73
8.0.110.0040.00416.67
8.0.100.0040.00416.69
8.0.90.0050.00316.77
8.0.80.0060.00916.81
8.0.70.0030.00516.86
8.0.60.0000.00716.66
8.0.50.0070.00016.70
8.0.30.0140.00616.87
8.0.20.0110.00817.40
8.0.10.0060.00316.98
8.0.00.0150.00916.65
7.4.330.0050.00015.55
7.4.320.0070.00016.38
7.4.300.0060.00016.40
7.4.290.0030.00316.41
7.4.280.0040.00416.41
7.4.270.0070.00016.43
7.4.260.0030.00316.25
7.4.250.0000.00816.43
7.4.240.0000.00716.48
7.4.230.0030.00316.39
7.4.220.0090.00916.31
7.4.210.0070.00716.44
7.4.200.0070.00016.36
7.4.160.0090.00916.39
7.4.150.0060.01217.40
7.4.140.0130.00617.86
7.4.130.0100.01016.38
7.4.120.0080.01216.37
7.4.110.0070.01016.25
7.4.100.0110.00716.48
7.4.90.0160.00016.22
7.4.80.0080.00919.39
7.4.70.0140.00316.47
7.4.60.0120.00416.43
7.4.50.0060.00916.11
7.4.40.0060.01016.52
7.4.30.0060.00916.43
7.4.00.0100.00314.72
7.3.330.0070.00013.01
7.3.320.0000.00613.05
7.3.310.0000.00616.29
7.3.300.0030.00316.05
7.3.290.0070.00816.25
7.3.280.0080.00916.22
7.3.270.0060.01217.40
7.3.260.0130.00616.26
7.3.250.0110.00616.21
7.3.240.0080.01016.16
7.3.230.0110.00716.23
7.3.210.0100.00616.29
7.3.200.0120.00816.22
7.3.190.0090.00616.46
7.3.180.0110.00616.29
7.3.170.0030.01316.24
7.3.160.0000.02116.24
7.2.330.0100.00716.52
7.2.320.0160.00316.42
7.2.310.0040.01216.49
7.2.300.0030.01316.23
7.2.290.0120.00416.30
7.2.60.0030.01016.80
7.2.00.0030.00618.96
7.1.200.0000.01015.36
7.1.100.0070.00718.14
7.1.70.0090.01015.27
7.1.60.0600.02233.14
7.1.50.0400.00332.74
7.1.40.0680.02032.50
7.1.30.0690.02332.45
7.1.20.0650.02032.55
7.1.10.0520.01314.50
7.1.00.0590.01214.64
7.0.200.0490.00914.98
7.0.190.0260.01114.67
7.0.180.0350.01514.16
7.0.170.0500.01014.48
7.0.160.0450.01314.16
7.0.150.0120.00914.16
7.0.140.0390.01414.50
7.0.130.0490.00814.48
7.0.120.0290.01314.48
7.0.110.1010.01114.13
7.0.100.0130.00914.27
7.0.90.1310.00014.38
7.0.80.0470.01314.31
7.0.70.0580.01214.37
7.0.60.0620.01313.94
7.0.50.0480.01314.57
7.0.40.0570.00914.73
7.0.30.0480.01614.50
7.0.20.0160.01414.51
7.0.10.0620.00414.43
7.0.00.0500.01614.55

preferences:
39.79 ms | 400 KiB | 5 Q