3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 5985; var_dump($x); echo "<br>"; $x = -345; // negative number var_dump($x); echo "<br>"; $x = 0x8C; // hexadecimal number var_dump($x); echo "<br>"; $x = 047; // octal number var_dump($x); ?> </body> </html>
Output for 4.3.0 - 7.1.0
int(5985) <br>int(-345) <br>int(140) <br>int(39) </body> </html>