3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace three; use one as three; class test{ public function result(){ echo '1'; }} namespace one\two\three; class test{ public function result(){ echo '201a'; }} namespace one\two; class test{ public function result(){ echo '0'; }} $test = new \three\test(); $test->result();

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.25
8.3.50.0110.00723.01
8.3.40.0030.01218.57
8.3.30.0070.01119.00
8.3.20.0040.00420.38
8.3.10.0040.00423.48
8.3.00.0040.00419.38
8.2.180.0090.00616.32
8.2.170.0110.00422.96
8.2.160.0100.01020.32
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0000.00822.19
8.2.100.0110.00020.52
8.2.90.0080.00019.27
8.2.80.0000.00817.97
8.2.70.0060.00617.25
8.2.60.0050.00317.89
8.2.50.0040.00418.07
8.2.40.0060.00319.75
8.2.30.0000.00817.94
8.2.20.0070.00017.61
8.2.10.0040.00418.00
8.2.00.0000.00717.50
8.1.280.0110.00725.92
8.1.270.0160.00023.79
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0030.00618.80
8.1.230.0040.00818.94
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.01017.35
8.1.190.0050.00317.10
8.1.180.0030.00518.10
8.1.170.0030.00618.57
8.1.160.0040.00421.84
8.1.150.0050.00218.74
8.1.140.0040.00417.39
8.1.130.0030.00317.86
8.1.120.0060.00317.35
8.1.110.0000.00717.43
8.1.100.0030.00317.42
8.1.90.0080.00017.38
8.1.80.0000.00817.39
8.1.70.0000.00717.40
8.1.60.0040.00417.51
8.1.50.0030.00617.47
8.1.40.0000.00917.47
8.1.30.0030.00517.56
8.1.20.0030.00517.54
8.1.10.0000.00817.55
8.1.00.0000.00717.56
8.0.300.0020.00518.77
8.0.290.0030.00316.63
8.0.280.0000.00718.45
8.0.270.0070.00017.31
8.0.260.0030.00317.26
8.0.250.0040.00416.89
8.0.240.0000.00816.88
8.0.230.0070.00016.78
8.0.220.0060.00016.80
8.0.210.0030.00316.83
8.0.200.0030.00316.84
8.0.190.0070.00316.78
8.0.180.0030.00516.79
8.0.170.0030.00616.84
8.0.160.0000.00716.78
8.0.150.0040.00416.80
8.0.140.0000.00716.79
8.0.130.0030.00313.32
8.0.120.0040.00416.82
8.0.110.0000.00816.86
8.0.100.0040.00516.88
8.0.90.0040.00316.90
8.0.80.0040.01116.85
8.0.70.0040.00416.70
8.0.60.0040.00416.70
8.0.50.0040.00416.86
8.0.30.0110.01317.00
8.0.20.0130.01117.40
8.0.10.0040.00416.88
8.0.00.0060.01216.81
7.4.330.0000.00515.09
7.4.320.0000.00716.54
7.4.300.0000.00616.49
7.4.290.0000.00716.61
7.4.280.0050.00216.49
7.4.270.0050.00216.52
7.4.260.0030.00316.56
7.4.250.0070.00016.46
7.4.240.0040.00416.49
7.4.230.0030.00316.67
7.4.220.0110.00916.67
7.4.210.0200.00016.43
7.4.200.0040.00416.59
7.4.160.0070.01816.29
7.4.150.0140.01117.40
7.4.140.0100.00717.86
7.4.130.0120.00816.53
7.4.120.0110.00716.39
7.4.110.0130.00316.47
7.4.100.0100.00716.23
7.4.90.0170.00616.56
7.4.80.0170.00019.39
7.4.70.0120.00616.41
7.4.60.0120.00616.54
7.4.50.0030.00516.46
7.4.40.0080.00816.36
7.4.30.0030.01316.62
7.4.00.0140.00314.70
7.3.330.0030.00313.25
7.3.320.0030.00313.23
7.3.310.0030.00316.12
7.3.300.0070.00016.16
7.3.290.0060.00916.21
7.3.280.0080.00716.22
7.3.270.0100.01317.40
7.3.260.0080.01216.20
7.3.250.0070.00916.34
7.3.240.0170.00316.29
7.3.230.0120.00616.50
7.3.210.0060.01316.52
7.3.200.0100.00719.39
7.3.190.0110.01116.18
7.3.180.0120.00416.25
7.3.170.0120.00916.39
7.3.160.0090.00616.36
7.2.330.0070.01016.46
7.2.320.0090.00916.51
7.2.310.0060.01016.35
7.2.300.0070.01016.43
7.2.290.0030.01316.68
7.2.60.0000.01316.95
7.2.00.0060.00619.33
7.1.200.0000.02015.32
7.1.100.0130.00717.99
7.1.70.0000.00717.10
7.1.60.0080.00419.40
7.1.50.0100.01416.54
7.1.00.0000.08022.40
7.0.200.0030.00716.75
7.0.140.0070.07322.09
7.0.60.0030.05720.06
7.0.50.0070.03717.83
7.0.40.0030.08720.40
7.0.30.0200.06720.20
7.0.20.0270.05020.21
7.0.10.0070.08720.15
7.0.00.0100.03720.10
5.6.280.0000.07321.04
5.6.210.0070.08320.57
5.6.200.0070.07318.23
5.6.190.0030.09020.61
5.6.180.0200.08020.52
5.6.170.0230.03720.55
5.6.160.0000.09020.43
5.6.150.0070.06018.15
5.6.140.0030.04318.19
5.6.130.0100.08018.16
5.6.120.0030.05021.02
5.6.110.0200.07321.11
5.6.100.0000.08020.86
5.6.90.0130.06321.13
5.6.80.0000.08720.37
5.5.350.0200.03720.42
5.5.340.0130.07018.02
5.5.330.0070.08020.23
5.5.320.0370.06720.22
5.5.310.0300.07020.28
5.5.300.0070.08317.98
5.5.290.0100.08017.98
5.5.280.0130.07320.90
5.5.270.0130.06320.86
5.5.260.0070.07320.63
5.5.250.0070.06020.58
5.5.240.0100.07020.13
5.4.450.0770.05319.34
5.4.440.0770.05319.66
5.4.430.0870.05719.55
5.4.420.0800.06019.21
5.4.410.0100.05018.70
5.4.400.0230.07018.77
5.4.390.0170.05318.51
5.4.380.0100.05318.47
5.4.370.0230.05018.56
5.4.360.0070.04718.57
5.4.350.0100.03312.02
5.4.340.0100.03612.02
5.4.320.0040.03612.50
5.4.310.0040.03812.50
5.4.300.0070.03712.51
5.4.290.0050.04012.50
5.4.280.0050.03412.39
5.4.270.0080.03912.39
5.4.260.0050.03912.39
5.4.250.0070.03512.40
5.4.240.0030.03912.39
5.4.230.0050.04112.39
5.4.220.0070.03612.38
5.4.210.0070.03312.38
5.4.200.0060.03612.39
5.4.190.0090.04012.38
5.4.180.0030.03712.38
5.4.170.0030.04112.40
5.4.160.0040.03812.39
5.4.150.0070.03812.39
5.4.140.0050.04912.07
5.4.130.0040.04312.06
5.4.120.0050.04112.02
5.4.110.0050.03812.02
5.4.100.0070.03312.02
5.4.90.0050.03712.01
5.4.80.0080.03412.01
5.4.70.0060.03412.01
5.4.60.0050.03712.00
5.4.50.0070.03212.01
5.4.40.0050.04012.00
5.4.30.0050.03512.00
5.4.20.0080.03711.99
5.4.10.0050.03412.00
5.4.00.0030.03711.48
5.3.290.0060.03712.80
5.3.280.0050.03712.71
5.3.270.0050.03812.72
5.3.260.0070.04512.72
5.3.250.0030.04412.72
5.3.240.0040.03812.72
5.3.230.0070.03512.71
5.3.220.0060.04112.68
5.3.210.0030.04012.68
5.3.200.0080.03412.68
5.3.190.0070.03512.68
5.3.180.0050.03912.68
5.3.170.0080.03712.67
5.3.160.0050.03712.68
5.3.150.0070.03512.68
5.3.140.0080.03312.66
5.3.130.0040.03912.66
5.3.120.0060.03712.66
5.3.110.0070.03612.66
5.3.100.0040.03812.15
5.3.90.0100.03612.12
5.3.80.0080.03412.11
5.3.70.0090.03612.12
5.3.60.0070.03712.09
5.3.50.0040.03912.04
5.3.40.0020.04012.04
5.3.30.0070.03912.00
5.3.20.0020.03711.78
5.3.10.0080.03111.75
5.3.00.0060.03411.73
5.2.170.0050.0339.18
5.2.160.0070.0289.18
5.2.150.0000.0349.18
5.2.140.0060.0289.17
5.2.130.0070.0279.13
5.2.120.0040.0289.14
5.2.110.0080.0369.15
5.2.100.0070.0259.14
5.2.90.0040.0289.14
5.2.80.0050.0299.14
5.2.70.0040.0309.14
5.2.60.0060.0279.09
5.2.50.0060.0279.06
5.2.40.0040.0289.04
5.2.30.0030.0309.02
5.2.20.0040.0299.00
5.2.10.0020.0308.92
5.2.00.0050.0318.79
5.1.60.0030.0248.06
5.1.50.0040.0338.06
5.1.40.0050.0238.05
5.1.30.0060.0258.40
5.1.20.0020.0278.41
5.1.10.0080.0218.14
5.1.00.0050.0258.14
5.0.50.0030.0216.63
5.0.40.0010.0216.47
5.0.30.0020.0316.29
5.0.20.0020.0246.27
5.0.10.0020.0206.24
5.0.00.0020.0316.23
4.4.90.0040.0134.78
4.4.80.0030.0174.75
4.4.70.0030.0244.75
4.4.60.0020.0154.75
4.4.50.0020.0244.77
4.4.40.0040.0284.71
4.4.30.0050.0164.76
4.4.20.0050.0214.84
4.4.10.0030.0234.85
4.4.00.0050.0284.76
4.3.110.0050.0184.67
4.3.100.0010.0164.66
4.3.90.0010.0204.63
4.3.80.0020.0244.59
4.3.70.0050.0124.63
4.3.60.0040.0144.63
4.3.50.0010.0164.63
4.3.40.0030.0234.54
4.3.30.0030.0143.28
4.3.20.0010.0183.25
4.3.10.0020.0183.22
4.3.00.0170.0207.14

preferences:
42.96 ms | 401 KiB | 5 Q