3v4l.org

run code in 300+ PHP versions simultaneously
<?php //namespace one; //use one as three; class test2{ public function result(){ echo '1'; }} namespace one\twoq\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.00016.63
8.3.50.0140.00222.88
8.3.40.0060.00918.71
8.3.30.0160.00318.96
8.3.20.0070.00020.34
8.3.10.0070.00723.71
8.3.00.0080.00019.26
8.2.180.0100.00718.41
8.2.170.0150.00618.96
8.2.160.0090.00622.96
8.2.150.0040.00424.18
8.2.140.0170.00024.66
8.2.130.0000.00726.16
8.2.120.0030.00621.04
8.2.110.0030.00622.31
8.2.100.0000.01217.53
8.2.90.0030.00619.13
8.2.80.0000.00817.97
8.2.70.0070.00217.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0080.00019.70
8.2.30.0030.00518.00
8.2.20.0070.00017.53
8.2.10.0070.00018.01
8.2.00.0000.00717.54
8.1.280.0170.00025.92
8.1.270.0120.00623.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.73
8.1.230.0040.00819.14
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00717.10
8.1.190.0040.00417.09
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00422.06
8.1.150.0000.00718.73
8.1.140.0000.00817.32
8.1.130.0050.00317.80
8.1.120.0030.00717.25
8.1.110.0000.00817.25
8.1.100.0020.00517.39
8.1.90.0070.00017.23
8.1.80.0080.00017.24
8.1.70.0000.00717.30
8.1.60.0040.00417.36
8.1.50.0040.00417.32
8.1.40.0040.00417.41
8.1.30.0030.00617.53
8.1.20.0070.00017.55
8.1.10.0040.00417.42
8.1.00.0040.00417.33
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0030.00318.32
8.0.270.0040.00417.18
8.0.260.0000.00817.09
8.0.250.0030.00316.87
8.0.240.0000.00716.89
8.0.230.0000.00616.77
8.0.220.0030.00316.84
8.0.210.0000.00816.85
8.0.200.0040.00416.83
8.0.190.0080.00316.82
8.0.180.0000.00716.81
8.0.170.0020.00516.90
8.0.160.0030.00316.93
8.0.150.0000.00916.82
8.0.140.0080.00016.73
8.0.130.0030.00313.30
8.0.120.0040.00416.70
8.0.110.0000.00716.66
8.0.100.0030.00616.79
8.0.90.0040.00416.81
8.0.80.0120.00316.88
8.0.70.0000.00816.78
8.0.60.0000.00716.89
8.0.50.0000.00816.85
8.0.30.0160.00516.96
8.0.20.0140.00917.40
8.0.10.0030.00416.90
8.0.00.0070.01216.74
7.4.330.0000.00615.00
7.4.320.0040.00416.33
7.4.300.0000.00616.34
7.4.290.0000.00716.34
7.4.280.0000.00716.44
7.4.270.0030.00516.38
7.4.260.0060.00316.47
7.4.250.0070.00016.26
7.4.240.0030.00316.51
7.4.230.0040.00416.28
7.4.220.0120.00816.31
7.4.210.0070.01016.57
7.4.200.0000.00716.56
7.4.160.0060.01316.34
7.4.150.0090.01517.40
7.4.140.0090.00817.86
7.4.130.0080.01116.44
7.4.120.0170.00516.55
7.4.110.0080.00916.55
7.4.100.0030.01316.36
7.4.90.0140.00416.48
7.4.80.0130.00519.39
7.4.70.0100.01216.50
7.4.60.0130.00616.53
7.4.50.0060.00316.31
7.4.40.0070.01616.54
7.4.30.0090.00916.54
7.3.330.0030.00313.21
7.3.320.0050.00013.25
7.3.310.0000.00716.23
7.3.300.0060.00016.10
7.3.290.0140.00016.23
7.3.280.0100.00616.17
7.3.270.0160.01017.40
7.3.260.0110.00716.19
7.3.250.0140.00516.34
7.3.240.0170.00716.25
7.3.230.0090.00916.39
7.3.210.0130.00616.32
7.3.200.0060.01219.39
7.3.190.0100.00716.18
7.3.180.0100.00616.14
7.3.170.0120.00616.33
7.3.160.0160.00016.46
7.2.330.0130.00316.35
7.2.320.0070.01016.46
7.2.310.0130.00316.27
7.2.300.0100.00916.49
7.2.290.0030.01316.43
5.4.320.0080.04212.51
5.4.310.0040.04212.51
5.4.300.0060.03512.52
5.4.290.0050.03812.50
5.4.280.0090.03712.40
5.4.270.0090.03212.40
5.4.260.0020.03912.40
5.4.250.0070.03812.40
5.4.240.0030.03812.40
5.4.230.0060.03612.39
5.4.220.0050.04212.39
5.4.210.0050.03412.39
5.4.200.0040.04012.40
5.4.190.0060.03412.39
5.4.180.0050.03512.39
5.4.170.0050.03712.41
5.4.160.0070.04312.40
5.4.150.0070.03312.40
5.4.140.0050.04012.08
5.4.130.0060.03712.07
5.4.120.0050.03512.03
5.4.110.0040.03612.02
5.4.100.0080.03312.02
5.4.90.0070.03412.02
5.4.80.0070.03312.02
5.4.70.0090.03512.02
5.4.60.0040.03412.02
5.4.50.0070.03512.02
5.4.40.0080.03212.00
5.4.30.0050.04012.00
5.4.20.0080.03712.00
5.4.10.0050.03412.00
5.4.00.0040.03711.50
5.3.290.0050.03812.80
5.3.280.0040.04312.71
5.3.270.0050.04012.72
5.3.260.0030.04112.72
5.3.250.0060.03712.72
5.3.240.0050.03712.72
5.3.230.0070.03712.71
5.3.220.0050.03712.68
5.3.210.0060.03812.68
5.3.200.0070.03412.68
5.3.190.0080.04212.68
5.3.180.0050.03512.67
5.3.170.0040.03712.67
5.3.160.0040.04112.67
5.3.150.0100.03512.67
5.3.140.0050.03512.66
5.3.130.0070.04212.66
5.3.120.0070.03712.66
5.3.110.0040.04012.66
5.3.100.0070.03512.12
5.3.90.0070.03312.10
5.3.80.0060.03412.09
5.3.70.0060.03412.09
5.3.60.0070.04412.07
5.3.50.0050.03512.02
5.3.40.0030.03912.02
5.3.30.0060.03711.99
5.3.20.0060.03311.76
5.3.10.0060.03311.73
5.3.00.0060.03411.72
5.2.170.0030.0319.21
5.2.160.0040.0299.22
5.2.150.0030.0329.21
5.2.140.0060.0349.21
5.2.130.0050.0299.17
5.2.120.0070.0249.17
5.2.110.0060.0299.18
5.2.100.0040.0289.18
5.2.90.0070.0269.18
5.2.80.0080.0279.18
5.2.70.0050.0369.18
5.2.60.0030.0309.13
5.2.50.0060.0289.10
5.2.40.0060.0359.07
5.2.30.0090.0349.05
5.2.20.0030.0309.04
5.2.10.0040.0278.94
5.2.00.0040.0288.81
5.1.60.0040.0318.09
5.1.50.0040.0238.09
5.1.40.0070.0258.07
5.1.30.0040.0268.42
5.1.20.0050.0258.44
5.1.10.0040.0258.16
5.1.00.0030.0308.17
5.0.50.0020.0256.64
5.0.40.0040.0256.50
5.0.30.0050.0316.31
5.0.20.0050.0186.28
5.0.10.0050.0186.26
5.0.00.0040.0316.25
4.4.90.0030.0184.78
4.4.80.0030.0164.75
4.4.70.0020.0194.75
4.4.60.0020.0174.75
4.4.50.0040.0134.77
4.4.40.0070.0274.71
4.4.30.0040.0194.76
4.4.20.0010.0174.84
4.4.10.0050.0194.85
4.4.00.0040.0254.75
4.3.110.0030.0154.67
4.3.100.0030.0164.66
4.3.90.0020.0174.63
4.3.80.0010.0274.59
4.3.70.0030.0144.63
4.3.60.0040.0154.62
4.3.50.0060.0144.63
4.3.40.0020.0244.54
4.3.30.0050.0213.30
4.3.20.0030.0243.28
4.3.10.0030.0213.23
4.3.00.0100.0237.14

preferences:
38.88 ms | 401 KiB | 5 Q