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.40.0080.00818.71
8.3.30.0120.00619.21
8.3.20.0080.00019.99
8.3.10.0040.01123.65
8.3.00.0090.00019.26
8.2.170.0090.00618.77
8.2.160.0110.00422.96
8.2.150.0080.00024.18
8.2.140.0110.00624.66
8.2.130.0070.00026.16
8.2.120.0170.00020.77
8.2.110.0000.01020.39
8.2.100.0070.00417.91
8.2.90.0080.00018.20
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00417.79
8.2.50.0000.00818.07
8.2.40.0040.00419.82
8.2.30.0040.00418.04
8.2.20.0040.00417.68
8.2.10.0040.00418.00
8.2.00.0070.00017.59
8.1.270.0150.00423.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0030.00720.88
8.1.220.0030.00517.74
8.1.210.0040.00418.84
8.1.200.0080.00317.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0080.00018.37
8.1.160.0000.00721.82
8.1.150.0040.00418.82
8.1.140.0050.00217.38
8.1.130.0000.00717.76
8.1.120.0030.00617.32
8.1.110.0050.00317.22
8.1.100.0000.00717.35
8.1.90.0000.00717.32
8.1.80.0040.00417.34
8.1.70.0050.00317.27
8.1.60.0060.00317.41
8.1.50.0030.00617.45
8.1.40.0040.00417.42
8.1.30.0000.00817.58
8.1.20.0070.00017.48
8.1.10.0040.00417.49
8.1.00.0060.00317.42
8.0.300.0000.00720.04
8.0.290.0040.00416.63
8.0.280.0080.00018.27
8.0.270.0040.00417.11
8.0.260.0060.00017.11
8.0.250.0070.00017.02
8.0.240.0000.00716.85
8.0.230.0000.00716.89
8.0.220.0050.00216.92
8.0.210.0040.00416.89
8.0.200.0030.00316.93
8.0.190.0030.00716.89
8.0.180.0000.00716.91
8.0.170.0030.00517.01
8.0.160.0000.00816.79
8.0.150.0040.00416.81
8.0.140.0080.00016.74
8.0.130.0040.00313.30
8.0.120.0000.00716.77
8.0.110.0050.00316.76
8.0.100.0000.00716.88
8.0.90.0000.00716.96
8.0.80.0060.00916.79
8.0.70.0040.00416.90
8.0.60.0050.00217.00
8.0.50.0040.00416.84
8.0.30.0120.01216.96
8.0.20.0090.01717.40
8.0.10.0070.00016.72
8.0.00.0030.01516.66
7.4.330.0000.00515.00
7.4.320.0040.00416.40
7.4.300.0060.00016.46
7.4.290.0030.00316.47
7.4.280.0000.00716.58
7.4.270.0000.00816.59
7.4.260.0030.00316.42
7.4.250.0000.00716.30
7.4.240.0030.00316.40
7.4.230.0000.00716.51
7.4.220.0130.00616.46
7.4.210.0000.01416.38
7.4.200.0090.00016.64
7.4.160.0130.00916.31
7.4.150.0170.01017.40
7.4.140.0110.00617.86
7.4.130.0070.01016.50
7.4.120.0100.00816.54
7.4.110.0070.01016.68
7.4.100.0090.00916.45
7.4.90.0140.00416.46
7.4.80.0130.00519.39
7.4.70.0090.00816.49
7.4.60.0100.01016.36
7.4.50.0000.00416.52
7.4.40.0120.00416.48
7.4.30.0110.00716.37
7.4.10.0100.00714.73
7.4.00.0030.00915.01
7.3.330.0050.00013.17
7.3.320.0020.00213.17
7.3.310.0030.00316.41
7.3.300.0000.00716.32
7.3.290.0110.00416.30
7.3.280.0090.00916.30
7.3.270.0090.01717.40
7.3.260.0080.00816.49
7.3.250.0040.01316.46
7.3.240.0120.01716.48
7.3.230.0170.00316.39
7.3.210.0120.00616.35
7.3.200.0110.00519.39
7.3.190.0120.00316.45
7.3.180.0030.01316.50
7.3.170.0060.01216.38
7.3.160.0130.00316.61
7.3.130.0040.01414.78
7.3.120.0110.00714.68
7.3.110.0120.00614.81
7.3.100.0030.00614.85
7.3.90.0090.00614.89
7.3.80.0080.00514.52
7.3.70.0060.01014.48
7.3.60.0000.01114.83
7.3.50.0090.00614.94
7.3.40.0130.00014.63
7.3.30.0060.00614.74
7.3.20.0110.00416.61
7.3.10.0080.00616.58
7.3.00.0050.00816.64
7.2.330.0070.01016.39
7.2.320.0060.01016.29
7.2.310.0090.01216.23
7.2.300.0030.01316.47
7.2.290.0100.00616.64
7.2.260.0130.00614.66
7.2.250.0070.01014.82
7.2.240.0000.01615.05
7.2.230.0090.00315.14
7.2.220.0090.00614.83
7.2.210.0000.01214.57
7.2.200.0030.01314.66
7.2.190.0130.00314.57
7.2.180.0070.00714.80
7.2.170.0120.00314.72
7.2.160.0000.01414.86
7.2.150.0060.00916.64
7.2.140.0060.00816.46
7.2.130.0040.01016.56
7.2.120.0030.00916.82
7.2.110.0070.00716.87
7.2.100.0060.00716.61
7.2.90.0070.00516.80
7.2.80.0050.01016.76
7.2.70.0050.01016.81
7.2.60.0010.01116.86
7.2.50.0060.00516.84
7.2.40.0030.01216.78
7.2.30.0100.00816.71
7.2.20.0020.01016.74
7.2.10.0050.00716.86
7.2.00.0030.01117.64
7.1.330.0070.00715.59
7.1.320.0100.00315.64
7.1.310.0060.00915.41
7.1.300.0070.00715.37
7.1.290.0030.01015.64
7.1.280.0030.00615.66
7.1.270.0060.00915.79
7.1.260.0040.00815.64
7.1.250.0060.00515.61
7.1.240.0070.00715.67
7.1.230.0070.01115.25
7.1.220.0070.01015.60
7.1.210.0030.01215.50
7.1.200.0080.00815.57
7.1.190.0040.00715.52
7.1.180.0040.01115.58
7.1.170.0070.00315.61
7.1.160.0080.01115.35
7.1.150.0070.00315.61
7.1.140.0070.00715.54
7.1.130.0060.00615.48
7.1.120.0100.00715.61
7.1.110.0120.00315.65
7.1.100.0400.00515.74
7.1.90.0170.00015.55
7.1.80.0030.01015.66
7.1.70.0050.01116.16
7.1.60.0020.01217.47
7.1.50.0110.00616.23
7.1.40.0100.00315.59
7.1.30.0000.01615.42
7.1.20.0060.00615.64
7.1.10.0000.01115.77
7.1.00.0070.04019.09
7.0.330.0040.00815.38
7.0.320.0040.01115.29
7.0.310.0070.00815.22
7.0.300.0100.00315.39
7.0.290.0070.00715.33
7.0.280.0050.00515.02
7.0.270.0080.00415.34
7.0.260.0060.00915.15
7.0.250.0030.00614.99
7.0.240.0000.01315.48
7.0.230.0040.01115.42
7.0.220.0040.00715.06
7.0.210.0130.00015.29
7.0.200.0050.00516.04
7.0.190.0070.00715.12
7.0.180.0080.00415.39
7.0.170.0030.01315.41
7.0.160.0060.01015.36
7.0.150.0030.01015.36
7.0.140.0080.03818.58
7.0.130.0040.01115.39
7.0.120.0120.00615.21
7.0.110.0070.00715.32
7.0.100.0050.02517.70
7.0.90.0000.02417.64
7.0.80.0070.03517.67
7.0.70.0040.02517.63
7.0.60.0080.03817.74
7.0.50.0200.04317.80
7.0.40.0030.04916.76
7.0.30.0130.03616.76
7.0.20.0080.03716.66
7.0.10.0110.03716.80
7.0.00.0050.04816.71
5.6.400.0060.00614.19
5.6.390.0090.00614.27
5.6.380.0030.01414.43
5.6.370.0060.00914.43
5.6.360.0030.01014.17
5.6.350.0040.01214.36
5.6.340.0090.00314.52
5.6.330.0060.00614.02
5.6.320.0000.00914.38
5.6.310.0070.00414.01
5.6.300.0000.01313.85
5.6.290.0090.00614.53
5.6.280.0060.04017.77
5.6.270.0040.00914.19
5.6.260.0000.00914.25
5.6.250.0070.02117.42
5.6.240.0050.02517.42
5.6.230.0020.02717.30
5.6.220.0060.03617.35
5.6.210.0050.02217.36
5.6.200.0080.02117.50
5.6.190.0070.04517.49
5.6.180.0060.02617.59
5.6.170.0070.03817.71
5.6.160.0090.04217.59
5.6.150.0090.04317.77
5.6.140.0060.04217.55
5.6.130.0150.03717.68
5.6.120.0020.02817.60
5.6.110.0050.04517.59
5.6.100.0030.03717.60
5.6.90.0030.03117.73
5.6.80.0020.03117.19
5.6.70.0070.03817.34
5.6.60.0040.04617.26
5.6.50.0070.03517.28
5.6.40.0050.04717.33
5.6.30.0090.04217.32
5.6.20.0080.04117.20
5.6.10.0080.02317.20
5.6.00.0080.02217.23
5.5.380.0050.02317.17
5.5.370.0050.02517.26
5.5.360.0030.04317.38
5.5.350.0050.04117.30
5.5.340.0070.04117.33
5.5.330.0080.03317.45
5.5.320.0030.04917.43
5.5.310.0110.03817.53
5.5.300.0050.02817.57
5.5.290.0070.04417.36
5.5.280.0050.03817.48
5.5.270.0050.02617.52
5.5.260.0050.04717.40
5.5.250.0050.02317.22
5.5.240.0080.03816.92
5.5.230.0030.02317.02
5.5.220.0050.04217.05
5.5.210.0090.03917.14
5.5.200.0090.04317.26
5.5.190.0020.04816.99
5.5.180.0070.03917.07
5.5.170.0030.01013.89
5.5.160.0040.04517.18
5.5.150.0070.04017.21
5.5.140.0030.04717.06
5.5.130.0100.03817.04
5.5.120.0090.03017.02
5.5.110.0080.03317.23
5.5.100.0050.04016.95
5.5.90.0130.02617.06
5.5.80.0020.03817.04
5.5.70.0080.04117.15
5.5.60.0030.04517.15
5.5.50.0100.02517.11
5.5.40.0090.03417.12
5.5.30.0100.03717.09
5.5.20.0090.03917.11
5.5.10.0060.02317.13
5.5.00.0070.03716.77
5.4.450.0070.02315.63
5.4.440.0030.03515.47
5.4.430.0050.04415.60
5.4.420.0050.03715.55
5.4.410.0050.02115.49
5.4.400.0030.02915.30
5.4.390.0070.02415.39
5.4.380.0020.02515.32
5.4.370.0080.01815.49
5.4.360.0120.03215.44
5.4.350.0060.03515.43
5.4.340.0030.03415.35
5.4.330.0000.01111.74
5.4.320.0020.03815.45
5.4.310.0060.04115.46
5.4.300.0040.02815.47
5.4.290.0050.02515.45
5.4.280.0070.03515.39
5.4.270.0090.02115.38
5.4.260.0050.03315.39
5.4.250.0050.02515.45
5.4.240.0070.02515.46
5.4.230.0050.03515.46
5.4.220.0040.03615.46
5.4.210.0000.03615.31
5.4.200.0100.03715.41
5.4.190.0120.03215.45
5.4.180.0110.02515.38
5.4.170.0080.02815.39
5.4.160.0050.04015.44
5.4.150.0070.02615.44
5.4.140.0070.03414.02
5.4.130.0100.03414.10
5.4.120.0050.04214.07
5.4.110.0050.04114.13
5.4.100.0050.04214.13
5.4.90.0050.03714.14
5.4.80.0050.03114.14
5.4.70.0070.03114.13
5.4.60.0060.04614.03
5.4.50.0030.02514.04
5.4.40.0030.03614.14
5.4.30.0030.03714.07
5.4.20.0090.03414.09
5.4.10.0090.02114.07
5.4.00.0100.02813.84
5.3.290.0070.08314.59
5.3.280.0100.03714.53
5.3.270.0030.04014.74
5.3.260.0070.07714.66
5.3.250.0100.08714.73
5.3.240.0070.08714.63
5.3.230.0070.08014.58
5.3.220.0070.03714.63
5.3.210.0000.05714.68
5.3.200.0070.05714.59
5.3.190.0030.05014.66
5.3.180.0030.08014.59
5.3.170.0100.04014.49
5.3.160.0070.04314.53
5.3.150.0100.05314.68
5.3.140.0100.07714.61
5.3.130.0070.05314.54
5.3.120.0100.05314.66
5.3.110.0070.05314.58
5.3.100.0100.06314.02
5.3.90.0100.07314.08
5.3.80.0030.06314.02
5.3.70.0070.07314.02
5.3.60.0000.08014.14
5.3.50.0070.04713.94
5.3.40.0070.06014.07
5.3.30.0070.07714.03
5.3.20.0030.04013.74
5.3.10.0170.06313.80
5.3.00.0070.06313.75
5.2.170.0030.03011.13
5.2.160.0100.06010.97
5.2.150.0030.03311.12
5.2.140.0000.04011.13
5.2.130.0000.03711.11
5.2.120.0070.03311.04
5.2.110.0030.03710.95
5.2.100.0130.03711.13
5.2.90.0070.06310.91
5.2.80.0000.06710.93
5.2.70.0070.06011.09
5.2.60.0230.02310.91
5.2.50.0030.04310.83
5.2.40.0000.05010.79
5.2.30.0100.05010.76
5.2.20.0030.03311.01
5.2.10.0070.02710.93
5.2.00.0030.05710.77
5.1.60.0000.05310.07
5.1.50.0070.0279.97
5.1.40.0030.0539.81
5.1.30.0030.05310.39
5.1.20.0070.03310.35
5.1.10.0030.05710.06
5.1.00.0130.04010.13
5.0.50.0070.0308.89
5.0.40.0030.0338.89
5.0.30.0070.0608.89
5.0.20.0070.0278.89
5.0.10.0000.0278.89
5.0.00.0070.0408.89
4.4.90.0070.0208.89
4.4.80.0030.0138.89
4.4.70.0030.0378.89
4.4.60.0030.0338.89
4.4.50.0030.0308.89
4.4.40.0030.0308.89
4.4.30.0000.0238.89
4.4.20.0030.0338.89
4.4.10.0030.0278.89
4.4.00.0000.0438.89
4.3.110.0000.0238.89
4.3.100.0000.0278.89
4.3.90.0000.0278.89
4.3.80.0100.0438.89
4.3.70.0070.0308.89
4.3.60.0000.0278.89
4.3.50.0000.0278.89
4.3.40.0070.0308.89
4.3.30.0030.0178.89
4.3.20.0030.0178.89
4.3.10.0000.0208.89
4.3.00.0000.0338.89

preferences:
55.78 ms | 400 KiB | 5 Q