3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(null-'0xA'+'0xC'+2+false+true+2+null); var_dump(intval('0xA')); var_dump(intval('0xC'));
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/VggfC on line 3 Notice: A non well formed numeric value encountered in /in/VggfC on line 3 int(5) int(0) int(0)
Output for 7.0.0 - 7.0.20
int(5) int(0) int(0)
Output for 5.3.19 - 5.6.28
int(7) int(0) int(0)