3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "0x80" + 0; var_dump($a); $converted = base_convert($a,16,2); var_dump($converted); printf("%d",bindec($converted));
Output for 7.1.0 - 7.3.0rc4
Notice: A non well formed numeric value encountered in /in/fqLIe on line 2 int(0) string(1) "0" 0
Output for 7.0.0 - 7.0.20
int(0) string(1) "0" 0
Output for 4.3.0 - 5.6.28
int(128) string(9) "100101000" 296