3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ver = 5; $ver += 0x0+1; var_dump(0x0+1); echo $ver; // 7
based on ohjO9
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.2.17, 5.3.11 - 7.1.0
int(1) 6
Output for 5.3.0 - 5.3.10
int(2) 7
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/1ZGWJ on line 6
Process exited with code 255.