3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace one; 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.0150.00016.73
8.3.50.0060.01022.74
8.3.40.0130.00318.71
8.3.30.0120.00618.96
8.3.20.0070.00020.16
8.3.10.0000.01523.35
8.3.00.0050.00319.38
8.2.180.0040.01516.63
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.09
8.2.110.0000.01020.35
8.2.100.0080.00317.84
8.2.90.0000.00819.13
8.2.80.0050.00317.97
8.2.70.0050.00517.50
8.2.60.0060.00317.79
8.2.50.0040.00418.10
8.2.40.0030.00519.82
8.2.30.0040.00418.09
8.2.20.0040.00417.67
8.2.10.0000.00818.00
8.2.00.0040.00417.65
8.1.280.0100.00725.92
8.1.270.0130.00623.84
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.75
8.1.230.0080.00318.93
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0070.00417.22
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0050.00318.52
8.1.160.0040.00422.00
8.1.150.0000.00818.80
8.1.140.0000.00717.18
8.1.130.0030.00317.79
8.1.120.0090.00017.15
8.1.110.0000.00717.32
8.1.100.0000.00717.21
8.1.90.0000.00717.31
8.1.80.0030.00317.21
8.1.70.0030.00317.16
8.1.60.0000.00817.46
8.1.50.0080.00017.37
8.1.40.0040.00417.41
8.1.30.0090.00017.53
8.1.20.0000.00717.47
8.1.10.0040.00417.40
8.1.00.0040.00417.29
8.0.300.0040.00418.77
8.0.290.0020.00516.75
8.0.280.0070.00018.24
8.0.270.0080.00017.17
8.0.260.0000.00617.11
8.0.250.0070.00016.98
8.0.240.0070.00016.94
8.0.230.0030.00316.90
8.0.220.0030.00316.91
8.0.210.0040.00416.77
8.0.200.0040.00416.95
8.0.190.0110.00016.94
8.0.180.0040.00416.84
8.0.170.0000.00816.89
8.0.160.0040.00416.84
8.0.150.0070.00016.72
8.0.140.0000.00816.86
8.0.130.0030.00313.24
8.0.120.0050.00316.84
8.0.110.0000.00816.81
8.0.100.0000.00716.68
8.0.90.0070.00016.92
8.0.80.0170.00316.84
8.0.70.0030.00516.79
8.0.60.0040.00416.76
8.0.50.0040.00416.84
8.0.30.0130.00716.90
8.0.20.0110.01317.40
8.0.10.0000.00716.78
8.0.00.0120.00716.81
7.4.330.0000.00515.00
7.4.320.0000.00716.49
7.4.300.0000.00616.44
7.4.290.0000.00716.44
7.4.280.0030.00316.53
7.4.270.0030.00316.37
7.4.260.0030.00316.49
7.4.250.0000.00716.34
7.4.240.0070.00016.38
7.4.230.0030.00316.28
7.4.220.0180.00916.61
7.4.210.0100.00416.35
7.4.200.0050.00316.53
7.4.160.0320.01016.40
7.4.150.0110.01617.40
7.4.140.0100.00817.86
7.4.130.0140.00716.50
7.4.120.0090.00816.38
7.4.110.0150.00616.43
7.4.100.0070.01016.58
7.4.90.0130.00316.44
7.4.80.0130.00919.39
7.4.70.0150.00416.46
7.4.60.0100.00716.56
7.4.50.0080.00016.60
7.4.40.0080.00816.26
7.4.30.0100.00716.61
7.4.10.0070.01014.84
7.4.00.0050.01214.77
7.3.330.0000.00613.29
7.3.320.0000.00513.35
7.3.310.0000.00716.16
7.3.300.0030.00316.32
7.3.290.0070.00816.29
7.3.280.0110.00516.30
7.3.270.0050.02017.40
7.3.260.0150.01816.59
7.3.250.0070.00916.29
7.3.240.0170.00316.41
7.3.230.0070.01416.39
7.3.210.0130.00716.34
7.3.200.0170.00319.39
7.3.190.0130.00316.31
7.3.180.0130.00316.43
7.3.170.0120.00916.51
7.3.160.0080.00816.46
7.3.130.0070.01014.63
7.3.120.0040.01414.91
7.3.110.0030.01614.91
7.3.100.0060.00914.80
7.3.90.0170.00315.00
7.3.80.0060.00915.12
7.3.70.0070.00714.72
7.3.60.0000.01214.91
7.3.50.0000.01414.86
7.3.40.0030.00714.65
7.3.30.0030.01014.79
7.3.20.0070.00316.70
7.3.10.0030.01116.56
7.3.00.0090.00016.52
7.2.330.0110.00716.49
7.2.320.0100.01016.49
7.2.310.0150.00916.62
7.2.300.0000.01716.51
7.2.290.0090.00616.39
7.2.260.0130.00714.88
7.2.250.0070.01114.68
7.2.240.0110.00414.82
7.2.230.0030.00915.15
7.2.220.0100.00614.75
7.2.210.0040.00714.77
7.2.200.0130.00314.88
7.2.190.0030.01014.88
7.2.180.0120.00315.04
7.2.170.0040.01114.98
7.2.160.0110.00415.03
7.2.150.0000.01016.96
7.2.140.0040.01116.62
7.2.130.0070.01116.84
7.2.120.0030.01016.84
7.2.110.0040.00816.61
7.2.100.0000.00916.70
7.2.90.0070.00716.80
7.2.80.0040.00716.81
7.2.70.0130.00316.46
7.2.60.0020.01316.81
7.2.50.0100.00716.54
7.2.40.0060.00916.75
7.2.30.0030.01316.81
7.2.20.0030.00916.78
7.2.10.0030.01116.74
7.2.00.0150.00016.53
7.1.330.0040.00715.28
7.1.320.0100.00715.40
7.1.310.0070.00715.79
7.1.300.0070.00415.62
7.1.290.0090.00015.38
7.1.280.0060.00615.68
7.1.270.0030.00615.63
7.1.260.0060.00315.73
7.1.250.0000.01315.45
7.1.240.0090.00015.66
7.1.230.0030.00615.45
7.1.220.0040.00715.72
7.1.210.0100.00015.70
7.1.200.0050.00915.58
7.1.190.0030.01015.77
7.1.180.0050.00515.42
7.1.170.0030.01215.72
7.1.160.0000.01315.40
7.1.150.0070.00715.53
7.1.140.0030.01015.32
7.1.130.0040.01115.68
7.1.120.0060.00915.58
7.1.110.0040.00415.75
7.1.100.0000.01615.76
7.1.90.0080.00415.57
7.1.80.0030.00915.79
7.1.70.0030.00916.22
7.1.60.0050.01017.57
7.1.50.0050.01116.20
7.1.40.0060.01015.45
7.1.30.0040.00815.58
7.1.20.0070.01015.62
7.1.10.0040.00715.49
7.1.00.0030.04319.09
7.0.330.0070.00715.46
7.0.320.0070.00715.33
7.0.310.0070.00715.40
7.0.300.0040.01115.11
7.0.290.0080.00515.12
7.0.280.0000.00815.14
7.0.270.0120.00315.36
7.0.260.0050.00514.93
7.0.250.0060.00315.41
7.0.240.0070.00415.34
7.0.230.0030.01015.02
7.0.220.0070.00715.04
7.0.210.0000.01315.16
7.0.200.0050.00515.85
7.0.190.0000.01415.39
7.0.180.0100.00315.27
7.0.170.0000.01415.07
7.0.160.0070.00715.26
7.0.150.0060.01015.35
7.0.140.0020.04318.70
7.0.130.0060.00815.20
7.0.120.0000.01015.47
7.0.110.0340.04317.74
7.0.100.0360.04017.51
7.0.90.0390.03717.55
7.0.80.0350.03617.66
7.0.70.0370.03317.65
7.0.60.0350.03717.59
7.0.50.0130.04317.97
7.0.40.0100.04316.78
7.0.30.0050.04816.75
7.0.20.0070.03216.71
7.0.10.0080.04016.69
7.0.00.0050.04916.77
5.6.400.0030.00714.11
5.6.390.0060.00913.98
5.6.380.0060.00314.13
5.6.370.0030.01214.15
5.6.360.0000.01014.46
5.6.350.0090.00314.04
5.6.340.0030.00614.09
5.6.330.0040.00713.90
5.6.320.0000.01113.99
5.6.310.0150.00014.25
5.6.300.0090.00014.23
5.6.290.0090.00614.39
5.6.280.0060.04017.54
5.6.270.0060.00614.14
5.6.260.0030.00914.12
5.6.250.0070.03917.58
5.6.240.0090.04117.41
5.6.230.0040.05217.39
5.6.220.0070.03817.45
5.6.210.0070.02717.47
5.6.200.0130.04017.64
5.6.190.0050.04017.55
5.6.180.0100.02317.64
5.6.170.0080.04017.45
5.6.160.0090.04617.69
5.6.150.0100.04317.72
5.6.140.0080.04617.44
5.6.130.0160.03717.77
5.6.120.0050.04317.59
5.6.110.0050.03517.70
5.6.100.0120.04017.51
5.6.90.0100.04417.66
5.6.80.0070.03517.29
5.6.70.0040.04417.13
5.6.60.0090.03817.24
5.6.50.0050.04317.40
5.6.40.0050.04417.41
5.6.30.0070.04217.34
5.6.20.0020.04517.21
5.6.10.0050.04017.34
5.6.00.0100.04017.22
5.5.380.0120.03817.38
5.5.370.0070.02817.17
5.5.360.0060.04317.12
5.5.350.0080.04317.27
5.5.340.0030.04817.46
5.5.330.0060.04117.53
5.5.320.0120.03817.52
5.5.310.0090.03417.47
5.5.300.0050.04317.56
5.5.290.0070.04717.25
5.5.280.0020.03517.45
5.5.270.0050.04917.52
5.5.260.0050.03017.52
5.5.250.0080.04317.44
5.5.240.0110.03617.16
5.5.230.0080.04517.22
5.5.220.0070.02817.13
5.5.210.0070.04217.01
5.5.200.0090.02417.06
5.5.190.0050.04317.29
5.5.180.0020.05117.05
5.5.170.0000.01613.92
5.5.160.0110.03616.97
5.5.150.0090.03617.09
5.5.140.0080.03917.03
5.5.130.0070.04317.21
5.5.120.0030.04716.90
5.5.110.0080.04117.23
5.5.100.0100.04316.96
5.5.90.0090.02416.99
5.5.80.0070.04116.94
5.5.70.0100.04016.98
5.5.60.0080.04117.07
5.5.50.0080.03817.16
5.5.40.0090.04017.12
5.5.30.0070.02616.95
5.5.20.0080.04017.02
5.5.10.0080.04117.14
5.5.00.0130.03517.01
5.4.450.0020.04515.02
5.4.440.0070.04315.09
5.4.430.0030.03215.29
5.4.420.0100.02215.10
5.4.410.0070.04315.12
5.4.400.0050.04414.88
5.4.390.0030.04014.83
5.4.380.0020.04014.96
5.4.370.0090.03114.83
5.4.360.0030.04514.96
5.4.350.0100.03214.93
5.4.340.0040.04014.96
5.4.330.0030.01310.95
5.4.320.0050.03315.06
5.4.310.0030.04314.95
5.4.300.0020.04414.91
5.4.290.0050.03815.12
5.4.280.0020.04614.97
5.4.270.0060.04214.83
5.4.260.0100.02015.07
5.4.250.0080.04314.92
5.4.240.0070.04014.84
5.4.230.0120.03714.97
5.4.220.0030.03815.00
5.4.210.0100.03814.98
5.4.200.0090.03814.91
5.4.190.0080.03714.98
5.4.180.0100.03514.85
5.4.170.0070.04014.88
5.4.160.0090.03914.97
5.4.150.0070.03814.86
5.4.140.0090.03713.50
5.4.130.0080.03913.84
5.4.120.0070.02313.54
5.4.110.0050.02613.63
5.4.100.0100.02513.45
5.4.90.0060.03913.68
5.4.80.0050.03813.54
5.4.70.0050.02413.57
5.4.60.0080.04013.76
5.4.50.0110.03113.63
5.4.40.0030.04113.67
5.4.30.0050.04013.48
5.4.20.0080.03813.66
5.4.10.0080.03313.58
5.4.00.0060.03513.20
5.3.290.0000.08314.80
5.3.280.0070.07014.68
5.3.270.0100.06714.59
5.3.260.0000.06714.62
5.3.250.0030.05314.63
5.3.240.0070.07714.84
5.3.230.0070.08014.55
5.3.220.0070.07014.80
5.3.210.0000.08014.55
5.3.200.0130.03714.71
5.3.190.0070.07714.79
5.3.180.0130.06314.67
5.3.170.0100.07314.59
5.3.160.0100.04714.70
5.3.150.0130.06714.57
5.3.140.0070.05014.79
5.3.130.0070.07014.70
5.3.120.0100.07314.56
5.3.110.0070.07714.51
5.3.100.0100.06714.05
5.3.90.0130.06314.05
5.3.80.0070.07314.17
5.3.70.0230.06014.00
5.3.60.0000.07713.86
5.3.50.0170.04013.96
5.3.40.0030.06013.80
5.3.30.0100.05013.89
5.3.20.0030.08013.70
5.3.10.0100.06713.74
5.3.00.0030.07713.66
5.2.170.0030.06011.16
5.2.160.0070.05711.13
5.2.150.0030.06311.05
5.2.140.0100.05711.04
5.2.130.0130.05011.11
5.2.120.0070.05311.04
5.2.110.0100.05311.00
5.2.100.0030.05711.05
5.2.90.0070.06011.03
5.2.80.0030.04711.00
5.2.70.0030.06711.02
5.2.60.0030.06011.08
5.2.50.0030.06011.01
5.2.40.0030.06010.94
5.2.30.0130.05710.99
5.2.20.0030.06311.02
5.2.10.0030.06310.81
5.2.00.0000.04010.70
5.1.60.0100.0509.92
5.1.50.0030.0539.88
5.1.40.0070.0509.91
5.1.30.0000.03310.19
5.1.20.0030.06010.25
5.1.10.0000.06010.00
5.1.00.0030.05710.05
5.0.50.0000.0538.45
5.0.40.0100.0408.29
5.0.30.0030.0678.46
5.0.20.0070.0278.17
5.0.10.0030.0378.22
5.0.00.0030.0538.15
4.4.90.0000.0377.82
4.4.80.0000.0407.82
4.4.70.0030.0337.82
4.4.60.0000.0377.82
4.4.50.0030.0377.82
4.4.40.0070.0507.82
4.4.30.0000.0407.82
4.4.20.0030.0337.82
4.4.10.0000.0377.82
4.4.00.0000.0577.82
4.3.110.0000.0377.82
4.3.100.0030.0337.82
4.3.90.0000.0377.82
4.3.80.0000.0537.82
4.3.70.0000.0337.82
4.3.60.0000.0377.82
4.3.50.0030.0307.82
4.3.40.0100.0377.82
4.3.30.0000.0377.82
4.3.20.0030.0337.82
4.3.10.0030.0337.82
4.3.00.0000.0337.82

preferences:
41.57 ms | 400 KiB | 5 Q