3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class hello {} } namespace bar { class hello { public function __construct(){ $foo = new foo\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.60.0140.00716.75
8.3.50.0120.00916.47
8.3.40.0070.00718.70
8.3.30.0110.00318.80
8.3.20.0050.00220.21
8.3.10.0000.00923.65
8.3.00.0080.00019.79
8.2.180.0140.00716.75
8.2.170.0110.00722.96
8.2.160.0080.00819.08
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00819.32
8.2.120.0070.00026.35
8.2.110.0090.00021.12
8.2.100.0090.00317.78
8.2.90.0050.00319.08
8.2.80.0090.00017.97
8.2.70.0090.00017.63
8.2.60.0000.00817.80
8.2.50.0060.00318.10
8.2.40.0030.00620.65
8.2.30.0000.00719.16
8.2.20.0070.00017.89
8.2.10.0070.00017.94
8.2.00.0060.00317.86
8.1.280.0040.01825.92
8.1.270.0070.00022.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00017.53
8.1.230.0070.00319.14
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00917.13
8.1.190.0040.00417.22
8.1.180.0070.00018.10
8.1.170.0030.00518.47
8.1.160.0000.00718.94
8.1.150.0070.00418.74
8.1.140.0000.00719.30
8.1.130.0000.00718.66
8.1.120.0040.00417.28
8.1.110.0040.00417.29
8.1.100.0030.00717.20
8.1.90.0040.00417.37
8.1.80.0030.00517.32
8.1.70.0030.00317.37
8.1.60.0000.00817.54
8.1.50.0040.00417.48
8.1.40.0040.00417.33
8.1.30.0040.00417.47
8.1.20.0000.00717.54
8.1.10.0080.00017.36
8.1.00.0000.00717.45
8.0.300.0000.00819.85
8.0.290.0040.00416.58
8.0.280.0030.00318.26
8.0.270.0000.00717.10
8.0.260.0050.00318.61
8.0.250.0000.00716.91
8.0.240.0070.00016.84
8.0.230.0060.00016.98
8.0.220.0070.00016.86
8.0.210.0000.00716.84
8.0.200.0040.00416.97
8.0.190.0050.00516.93
8.0.180.0040.00416.91
8.0.170.0040.00416.81
8.0.160.0000.00716.78
8.0.150.0070.00016.71
8.0.140.0030.00316.73
8.0.130.0050.00013.27
8.0.120.0000.00816.84
8.0.110.0040.00416.99
8.0.100.0030.00516.78
8.0.90.0040.00416.78
8.0.80.0100.00716.93
8.0.70.0040.00416.75
8.0.60.0070.00016.74
8.0.50.0000.00716.86
8.0.30.0090.00917.08
8.0.20.0120.00817.40
8.0.10.0030.00617.04
8.0.00.0090.00916.72
7.4.330.0020.00215.55
7.4.320.0030.00316.48
7.4.300.0000.00616.48
7.4.290.0030.00316.43
7.4.280.0070.00016.36
7.4.270.0070.00016.36
7.4.260.0070.00016.40
7.4.250.0000.00716.40
7.4.240.0000.00816.43
7.4.230.0030.00316.52
7.4.220.0090.01516.55
7.4.210.0110.00316.48
7.4.200.0070.00016.59
7.4.160.0070.01016.45
7.4.150.0140.00317.40
7.4.140.0130.00917.86
7.4.130.0110.00716.62
7.4.120.0040.01516.49
7.4.110.0030.01416.65
7.4.100.0120.00816.53
7.4.90.0080.00816.47
7.4.80.0060.01019.39
7.4.70.0150.00316.37
7.4.60.0110.00816.59
7.4.50.0100.00616.24
7.4.40.0100.00716.52
7.4.30.0220.01616.39
7.4.00.0070.01114.78
7.3.330.0070.00013.43
7.3.320.0030.00313.43
7.3.310.0030.00316.24
7.3.300.0030.00316.43
7.3.290.0100.00616.37
7.3.280.0100.00716.35
7.3.270.0120.00917.40
7.3.260.0130.00716.29
7.3.250.0090.01016.43
7.3.240.0050.01216.46
7.3.230.0120.00616.28
7.3.210.0060.01216.30
7.3.200.0140.00516.66
7.3.190.0060.01016.40
7.3.180.0060.00916.62
7.3.170.0060.01016.28
7.3.160.0130.00616.46
7.3.10.0060.00916.27
7.3.00.0130.00616.16
7.2.330.0050.01416.46
7.2.320.0060.01216.44
7.2.310.0080.00816.29
7.2.300.0000.01716.22
7.2.290.0110.00716.74
7.2.130.0070.01016.37
7.2.120.0070.00716.45
7.2.110.0080.01116.42
7.2.100.0110.00416.14
7.2.90.0000.01016.79
7.2.80.0080.00816.35
7.2.70.0060.01816.37
7.2.60.0130.00316.76
7.2.50.0100.00716.55
7.2.40.0150.00816.58
7.2.30.0060.00616.30
7.2.20.0040.01516.70
7.2.10.0090.00916.51
7.2.00.0090.00717.82
7.1.250.0070.01015.44
7.1.200.0060.00915.63
7.1.100.0000.01417.96
7.1.70.0060.01316.97
7.1.60.0160.01935.11
7.1.50.0170.01334.78
7.1.40.0300.01234.33
7.1.30.0260.00734.51
7.1.20.0230.01334.43
7.1.10.0080.01116.50
7.1.00.0150.00616.54
7.0.200.0070.01016.68
7.0.190.0090.00716.34
7.0.180.0060.01316.10
7.0.170.0080.01016.22
7.0.160.0080.01116.07
7.0.150.0030.01515.94
7.0.140.0100.00716.13
7.0.130.0040.01516.46
7.0.120.0030.01616.34
7.0.110.0100.01016.24
7.0.100.0060.01016.17
7.0.90.0040.01516.12
7.0.80.0030.01616.21
7.0.70.0090.00716.29
7.0.60.0130.01515.78
7.0.50.0120.00316.20
7.0.40.0060.01516.27
7.0.30.0090.00916.30
7.0.20.0080.00916.32
7.0.10.0090.00916.25
7.0.00.0030.01816.50

preferences:
40.81 ms | 401 KiB | 5 Q