3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function show($v) { echo "$v\n"; } for($i = 0; $i < 1000; $i++) { if (pow(2, $i) !== 1 << $i) { show(pow(2, $i)); show(1 << $i); break; } }
Output for 4.3.6 - 7.1.0
9.2233720368548E+18 -9223372036854775808
Output for 4.3.0 - 4.3.5
1.844674407371E+19 1