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\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.0070.00716.63
8.3.50.0070.00822.84
8.3.40.0070.01118.70
8.3.30.0100.00318.92
8.3.20.0080.00020.04
8.3.10.0000.00823.67
8.3.00.0060.00319.13
8.2.180.0160.00016.50
8.2.170.0100.00322.96
8.2.160.0090.00620.39
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0060.00319.77
8.2.110.0040.00721.05
8.2.100.0060.00617.97
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0000.00719.82
8.2.30.0040.00417.90
8.2.20.0000.00717.61
8.2.10.0000.00718.05
8.2.00.0040.00417.61
8.1.280.0140.00725.92
8.1.270.0160.00323.92
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.97
8.1.230.0040.00719.52
8.1.220.0000.00817.74
8.1.210.0050.00518.77
8.1.200.0070.00317.22
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00618.59
8.1.160.0050.00321.85
8.1.150.0000.00718.86
8.1.140.0000.00717.22
8.1.130.0030.00317.77
8.1.120.0030.00617.41
8.1.110.0040.00417.42
8.1.100.0050.00317.27
8.1.90.0000.00717.31
8.1.80.0040.00417.40
8.1.70.0000.00717.25
8.1.60.0040.00417.56
8.1.50.0000.00817.52
8.1.40.0060.00317.41
8.1.30.0000.00817.53
8.1.20.0000.00817.54
8.1.10.0030.00517.52
8.1.00.0000.00717.54
8.0.300.0000.00718.77
8.0.290.0070.00016.88
8.0.280.0080.00018.39
8.0.270.0080.00017.17
8.0.260.0060.00017.17
8.0.250.0000.00716.79
8.0.240.0030.00316.84
8.0.230.0030.00316.89
8.0.220.0000.00616.87
8.0.210.0030.00316.88
8.0.200.0000.00616.88
8.0.190.0080.00316.91
8.0.180.0000.00716.74
8.0.170.0040.00416.89
8.0.160.0000.00716.78
8.0.150.0000.00816.72
8.0.140.0060.00316.81
8.0.130.0000.00513.13
8.0.120.0040.00416.84
8.0.110.0040.00416.68
8.0.100.0030.00616.86
8.0.90.0070.00016.71
8.0.80.0030.01316.80
8.0.70.0000.00816.87
8.0.60.0000.00716.71
8.0.50.0040.00416.67
8.0.30.0060.01316.88
8.0.20.0120.00817.40
8.0.10.0030.00516.94
8.0.00.0060.01216.83
7.4.330.0030.00315.00
7.4.320.0030.00316.53
7.4.300.0000.00616.59
7.4.290.0000.00616.42
7.4.280.0030.00316.63
7.4.270.0040.00416.57
7.4.260.0080.00016.43
7.4.250.0030.00316.54
7.4.240.0070.00016.57
7.4.230.0000.00716.49
7.4.220.0040.01516.68
7.4.210.0110.00716.57
7.4.200.0000.00716.47
7.4.160.0090.01316.71
7.4.150.0090.00917.40
7.4.140.0060.01117.86
7.4.130.0060.01016.37
7.4.120.0120.00616.38
7.4.110.0140.00316.45
7.4.100.0090.00616.45
7.4.90.0170.00016.46
7.4.80.0060.01519.39
7.4.70.0210.00616.40
7.4.60.0070.01016.47
7.4.50.0040.00016.42
7.4.40.0090.00616.51
7.4.30.0090.00916.23
7.4.00.0100.00314.91
7.3.330.0020.00213.11
7.3.320.0000.00513.11
7.3.310.0000.00716.11
7.3.300.0000.00716.25
7.3.290.0040.01116.26
7.3.280.0120.00616.24
7.3.270.0220.00917.40
7.3.260.0160.00316.36
7.3.250.0090.00816.35
7.3.240.0120.00816.47
7.3.230.0120.00416.39
7.3.210.0070.01016.26
7.3.200.0150.00316.24
7.3.190.0040.01316.59
7.3.180.0100.00616.53
7.3.170.0080.00816.38
7.3.160.0040.01216.32
7.3.120.0060.01014.95
7.3.110.0070.01014.79
7.3.100.0100.00614.98
7.3.90.0120.00614.54
7.3.80.0070.00714.54
7.3.70.0070.00714.73
7.3.60.0040.00714.42
7.3.50.0030.01014.86
7.3.40.0000.00814.54
7.3.30.0070.00714.73
7.3.20.0080.00416.61
7.3.10.0080.00416.25
7.3.00.0030.01016.61
7.2.330.0110.00616.43
7.2.320.0130.00316.57
7.2.310.0090.00616.44
7.2.300.0100.00616.67
7.2.290.0150.00016.75
7.2.250.0110.00715.23
7.2.240.0040.01415.18
7.2.230.0000.01014.91
7.2.220.0030.01415.17
7.2.210.0040.00815.09
7.2.200.0060.00314.75
7.2.190.0090.00615.05
7.2.180.0110.00415.07
7.2.170.0100.00315.06
7.2.00.0030.00919.45
7.1.330.0070.00715.65
7.1.320.0040.01215.81
7.1.310.0040.00715.57
7.1.300.0040.00815.42
7.1.290.0030.01015.83
7.1.280.0000.01415.77
7.1.270.0060.00615.50
7.1.260.0040.00715.38
7.1.100.0160.00017.91
7.1.70.0000.00716.91
7.1.60.0090.00619.40
7.1.50.0130.01016.86
7.1.00.0000.08022.54
7.0.200.0000.00816.73
7.0.140.0100.06722.00
7.0.60.0070.07320.07
7.0.50.0070.06017.88
7.0.40.0030.08720.38
7.0.30.0200.07720.17
7.0.20.0370.07020.23
7.0.10.0070.08320.08
7.0.00.0070.05720.07
5.6.280.0100.06721.00
5.6.210.0070.04320.47
5.6.200.0030.08318.14
5.6.190.0070.05720.39
5.6.180.0170.04320.68
5.6.170.0230.04320.51
5.6.160.0070.07720.50
5.6.150.0000.06718.29
5.6.140.0030.04018.18
5.6.130.0000.04318.17
5.6.120.0030.08320.98
5.6.110.0070.04020.98
5.6.100.0030.08721.04
5.6.90.0070.08020.88
5.6.80.0030.04720.29
5.5.350.0200.07720.43
5.5.340.0130.06317.95
5.5.330.0070.05320.43
5.5.320.0200.05320.34
5.5.310.0300.07320.41
5.5.300.0000.05717.95
5.5.290.0030.08317.96
5.5.280.0130.08020.88
5.5.270.0030.05720.80
5.5.260.0030.04020.65
5.5.250.0100.07020.58
5.5.240.0030.08020.15
5.4.450.0600.06319.59
5.4.440.0670.06019.57
5.4.430.0500.06019.58
5.4.420.0670.05019.43
5.4.410.0030.06018.70
5.4.400.0270.07018.66
5.4.390.0400.05318.66
5.4.380.0130.04718.75
5.4.370.0030.04018.54
5.4.360.0000.04318.73
5.4.350.0090.04912.02
5.4.340.0120.04212.02
5.4.320.0040.03812.51
5.4.310.0060.04112.50
5.4.300.0110.03712.50
5.4.290.0080.03912.50
5.4.280.0090.03912.39
5.4.270.0090.04112.39
5.4.260.0070.04312.39
5.4.250.0100.03612.39
5.4.240.0070.03412.40
5.4.230.0020.04012.39
5.4.220.0040.03712.39
5.4.210.0030.03712.39
5.4.200.0040.03812.39
5.4.190.0030.04312.38
5.4.180.0030.03912.38
5.4.170.0030.03812.40
5.4.160.0030.03812.39
5.4.150.0070.03712.39
5.4.140.0060.03712.07
5.4.130.0080.03312.06
5.4.120.0050.03612.02
5.4.110.0070.03312.01
5.4.100.0070.03312.01
5.4.90.0020.04312.02
5.4.80.0050.03812.01
5.4.70.0080.03412.01
5.4.60.0050.03612.00
5.4.50.0050.03712.01
5.4.40.0060.03412.00
5.4.30.0080.03411.99
5.4.20.0070.03411.99
5.4.10.0070.03312.00
5.4.00.0060.03511.48
5.3.290.0090.03512.80
5.3.280.0080.03412.71
5.3.270.0070.03712.73
5.3.260.0050.04012.71
5.3.250.0040.04112.72
5.3.240.0050.03812.72
5.3.230.0070.03612.71
5.3.220.0080.03412.68
5.3.210.0070.03712.68
5.3.200.0070.03512.68
5.3.190.0040.03812.68
5.3.180.0070.03412.68
5.3.170.0050.04012.67
5.3.160.0060.03612.68
5.3.150.0050.04012.68
5.3.140.0050.05312.66
5.3.130.0120.04812.66
5.3.120.0060.04512.65
5.3.110.0050.04912.66
5.3.100.0050.04112.13
5.3.90.0070.03612.11
5.3.80.0060.03512.09
5.3.70.0030.03812.10
5.3.60.0090.03212.08
5.3.50.0040.03712.03
5.3.40.0070.03512.03
5.3.30.0060.03412.00
5.3.20.0080.03211.77
5.3.10.0070.03811.73
5.3.00.0080.03311.72
5.2.170.0060.0309.18
5.2.160.0030.0369.18
5.2.150.0050.0389.18
5.2.140.0040.0339.18
5.2.130.0020.0319.14
5.2.120.0040.0299.14
5.2.110.0020.0319.14
5.2.100.0040.0289.14
5.2.90.0040.0299.14
5.2.80.0030.0319.14
5.2.70.0040.0309.14
5.2.60.0040.0309.09
5.2.50.0050.0329.06
5.2.40.0040.0289.03
5.2.30.0090.0329.02
5.2.20.0060.0289.01
5.2.10.0030.0318.93
5.2.00.0060.0298.78
5.1.60.0080.0198.06
5.1.50.0060.0228.07
5.1.40.0080.0388.05
5.1.30.0060.0238.40
5.1.20.0040.0298.42
5.1.10.0010.0288.14
5.1.00.0070.0278.14
5.0.50.0030.0236.62
5.0.40.0060.0186.48
5.0.30.0040.0376.29
5.0.20.0050.0176.26
5.0.10.0040.0196.24
5.0.00.0040.0306.23
4.4.90.0020.0164.78
4.4.80.0010.0174.76
4.4.70.0040.0144.75
4.4.60.0010.0174.75
4.4.50.0030.0154.77
4.4.40.0010.0274.71
4.4.30.0030.0144.76
4.4.20.0010.0164.84
4.4.10.0010.0174.85
4.4.00.0050.0304.76
4.3.110.0020.0164.66
4.3.100.0020.0174.66
4.3.90.0040.0134.64
4.3.80.0030.0294.58
4.3.70.0020.0214.63
4.3.60.0040.0174.62
4.3.50.0030.0194.63
4.3.40.0030.0254.54
4.3.30.0020.0153.28
4.3.20.0010.0183.26
4.3.10.0030.0233.22
4.3.00.0000.0237.13

preferences:
39.08 ms | 401 KiB | 5 Q