3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 129; $y = 1; $m = microtime(true); $y = 1 << ceil(log($x, 2)); echo microtime(true), "\n\r"; $y = 1; $m = microtime(true); while ($y < $x) { $y = $y <<1; } echo microtime(true) - $m;
Output for 7.1.0
1383238739.0063 9.5367431640625E-7
Output for 7.0.14
1383238739.0038 1.1920928955078E-6
Output for 5.4.28, 5.4.43, 5.5.11, 5.6.11, 7.0.10
1383238739.0038 9.5367431640625E-7
Output for 5.4.17, 5.4.24, 7.0.9
1383238739.0034 9.5367431640625E-7
Output for 5.5.13, 7.0.8
1383238739.0038 2.1457672119141E-6
Output for 5.5.36, 5.6.0, 7.0.7
1383238739.0046 9.5367431640625E-7
Output for 7.0.6
1383238739.0042 0
Output for 5.4.26, 5.5.0, 5.5.8, 7.0.5
1383238739.0044 9.5367431640625E-7
Output for 5.5.29, 5.6.24, 7.0.4
1383238739.0041 9.5367431640625E-7
Output for 5.6.10, 7.0.3
1383238739.0037 9.5367431640625E-7
Output for 7.0.2
1383238739.0037 1.1920928955078E-6
Output for 7.0.1
1383238739.0064 9.5367431640625E-7
Output for 5.4.16, 5.5.19, 5.5.33, 5.5.37, 5.6.7, 5.6.19, 7.0.0
1383238739.004 9.5367431640625E-7
Output for hhvm-3.12.0
1383238739.3133 3.814697265625E-6
Output for hhvm-3.10.0
1383238739.2691 2.4080276489258E-5
Output for 5.5.3, 5.6.28
1383238739.0045 1.9073486328125E-6
Output for 5.5.23, 5.5.27, 5.6.25
1383238739.0049 1.9073486328125E-6
Output for 5.6.23
1383238739.0034 1.1920928955078E-6
Output for 5.4.20, 5.4.35, 5.5.30, 5.6.22
1383238739.0042 1.9073486328125E-6
Output for 5.5.28, 5.6.2, 5.6.8, 5.6.21
1383238739.0043 1.9073486328125E-6
Output for 5.4.15, 5.6.20
1383238739.0044 1.9073486328125E-6
Output for 5.5.16, 5.6.18
1383238739.0047 9.5367431640625E-7
Output for 5.5.34 - 5.5.35, 5.6.17
1383238739.0045 9.5367431640625E-7
Output for 5.4.30, 5.6.16
1383238739.0042 9.5367431640625E-7
Output for 5.6.15
1383238739.0055 1.1920928955078E-6
Output for 5.5.20, 5.6.12, 5.6.14
1383238739.0049 2.1457672119141E-6
Output for 5.6.13
1383238739.0048 2.1457672119141E-6
Output for 5.6.9
1383238739.0049 9.5367431640625E-7
Output for 5.6.6
1383238739.0041 2.1457672119141E-6
Output for 5.6.5
1383238739.0033 1.1920928955078E-6
Output for 5.6.3 - 5.6.4
1383238739.0047 2.1457672119141E-6
Output for 5.6.1
1383238739.005 1.9073486328125E-6
Output for 5.5.38
1383238739.003 9.5367431640625E-7
Output for 5.4.32, 5.4.36, 5.5.32
1383238739.0039 9.5367431640625E-7
Output for 5.4.42, 5.5.31
1383238739.0035 9.5367431640625E-7
Output for 5.5.26
1383238739.0058 2.1457672119141E-6
Output for 5.5.25
1383238739.0035 2.1457672119141E-6
Output for 5.5.24
1383238739.0048 1.9073486328125E-6
Output for 5.5.22
1383238739.0053 9.5367431640625E-7
Output for 5.4.45, 5.5.4, 5.5.21
1383238739.005 9.5367431640625E-7
Output for 5.5.18
1383238739.0042 1.1920928955078E-6
Output for 5.5.15
1383238739.004 2.1457672119141E-6
Output for 5.5.14
1383238739.0047 1.1920928955078E-6
Output for 5.5.12
1383238739.003 1.1920928955078E-6
Output for 5.5.10
1383238739.0044 2.1457672119141E-6
Output for 5.4.23, 5.5.9
1383238739.0043 9.5367431640625E-7
Output for 5.4.22, 5.5.7
1383238739.0045 2.1457672119141E-6
Output for 5.5.6
1383238739.005 2.1457672119141E-6
Output for 5.5.5
1383238739.0051 1.9073486328125E-6
Output for 5.5.2
1383238739.0048 9.5367431640625E-7
Output for 5.5.1
1383238739.0065 3.0994415283203E-6
Output for 5.4.44
1383238739.0035 1.1920928955078E-6
Output for 5.4.18, 5.4.41
1383238739.0041 1.1920928955078E-6
Output for 5.4.19, 5.4.40
1383238739.0036 9.5367431640625E-7
Output for 5.4.39
1383238739.0035 1.9073486328125E-6
Output for 5.4.38
1383238739.0039 2.1457672119141E-6
Output for 5.4.37
1383238739.0033 1.9073486328125E-6
Output for 5.4.29, 5.4.34
1383238739.004 1.9073486328125E-6
Output for 5.4.31
1383238739.0031 9.5367431640625E-7
Output for 5.4.27
1383238739.0033 9.5367431640625E-7
Output for 5.4.25
1383238739.0038 1.9073486328125E-6
Output for 5.4.21
1383238739.0032 1.1920928955078E-6
Output for 5.3.22, 5.4.11, 5.4.14
1383238739.0022 9.5367431640625E-7
Output for 5.4.13
1383238739.0025 9.5367431640625E-7
Output for 5.3.5, 5.4.8, 5.4.12
1383238739.0021 9.5367431640625E-7
Output for 5.3.11, 5.4.10
1383238739.0025 1.9073486328125E-6
Output for 5.4.9
1383238739.0022 1.9073486328125E-6
Output for 5.3.0, 5.4.0, 5.4.7
1383238739.0024 9.5367431640625E-7
Output for 5.3.1, 5.3.6, 5.3.10, 5.3.13, 5.3.16, 5.3.19, 5.3.24, 5.3.28, 5.4.3, 5.4.5 - 5.4.6
1383238739.0024 1.9073486328125E-6
Output for 5.3.18, 5.4.4
1383238739.002 2.1457672119141E-6
Output for 5.3.3, 5.4.2
1383238739.0023 9.5367431640625E-7
Output for 5.4.1
1383238739.0024 2.1457672119141E-6
Output for 5.3.29
1383238739.002 9.5367431640625E-7
Output for 5.3.14, 5.3.27
1383238739.0021 2.1457672119141E-6
Output for 5.3.26
1383238739.0024 1.1920928955078E-6
Output for 5.3.25
1383238739.0023 3.0994415283203E-6
Output for 5.3.8, 5.3.23
1383238739.0022 2.1457672119141E-6
Output for 5.3.21
1383238739.0017 2.1457672119141E-6
Output for 5.2.13, 5.3.20
1383238739.002 1.9073486328125E-6
Output for 5.3.17
1383238739.0022 1.1920928955078E-6
Output for 5.3.4, 5.3.12, 5.3.15
1383238739.0023 1.9073486328125E-6
Output for 5.3.9
1383238739.0019 9.5367431640625E-7
Output for 5.3.7
1383238739.0025 3.0994415283203E-6
Output for 5.3.2
1383238739.0025 1.1920928955078E-6
Output for 5.2.7, 5.2.12, 5.2.17
1383238739.0018 2.1457672119141E-6
Output for 5.2.16
1383238739.002 4.0531158447266E-6
Output for 5.2.9, 5.2.15
1383238739.002 3.0994415283203E-6
Output for 5.2.14
1383238739.0019 3.0994415283203E-6
Output for 5.2.3, 5.2.11
1383238739.0018 2.8610229492188E-6
Output for 5.2.5, 5.2.10
1383238739.002 2.8610229492188E-6
Output for 5.2.8
1383238739.0014 1.9073486328125E-6
Output for 5.2.6
1383238739.0021 2.8610229492188E-6
Output for 5.2.4
1383238739.0015 2.1457672119141E-6
Output for 5.2.2
1383238739.0019 2.1457672119141E-6
Output for 5.2.1
1383238739.0019 1.9073486328125E-06
Output for 5.2.0
1383238739.0018 3.0994415283203E-06
Output for 5.1.6
1383238739.0016 2.1457672119141E-06
Output for 5.1.4 - 5.1.5
1383238739.0019 2.8610229492188E-06
Output for 5.1.3
1383238739.0014 1.9073486328125E-06
Output for 5.1.2
1383238739.0018 4.0531158447266E-06
Output for 5.1.1
1383238739.0014 2.1457672119141E-06
Output for 5.1.0
1383238739.0015 3.0994415283203E-06
Output for 5.0.1, 5.0.5
1383238739.0008 4.0531158447266E-06
Output for 5.0.4
1383238739.0006 2.8610229492188E-06
Output for 5.0.3
1383238739.0007 4.0531158447266E-06
Output for 5.0.2
1383238739.0011 5.9604644775391E-06
Output for 5.0.0
1383238739.0006 3.0994415283203E-06
Output for 4.4.9
0.00017800 1383238739 5E-06
Output for 4.4.8
0.00018500 1383238739 5E-06
Output for 4.4.7
0.00020900 1383238739 5E-06
Output for 4.4.3, 4.4.6
0.00020500 1383238739 5E-06
Output for 4.4.5
0.00017600 1383238739 5E-06
Output for 4.4.4
0.00016600 1383238739 7E-06
Output for 4.4.2
0.00019400 1383238739 5E-06
Output for 4.4.1
0.00018000 1383238739 5E-06
Output for 4.4.0
0.00015600 1383238739 6E-06
Output for 4.3.11
0.00016700 1383238739 4E-06
Output for 4.3.10
0.00018300 1383238739 4E-06
Output for 4.3.9
0.00018800 1383238739 6E-06
Output for 4.3.8
0.00017800 1383238739 8E-06
Output for 4.3.7
0.00018100 1383238739 9E-06
Output for 4.3.6
0.00020800 1383238739 6E-06
Output for 4.3.5
0.00019900 1383238739 9E-06
Output for 4.3.4
0.00019400 1383238739 8E-06
Output for 4.3.3
0.00020200 1383238739 6E-06
Output for 4.3.2
0.00019500 1383238739 5E-06
Output for 4.3.1
0.00019900 1383238739 5E-06
Output for 4.3.0
0.00016400 1383238739 6E-06