3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $nr = "0x2f"; $n = $nr + 0; echo "n = $n";
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/r8q4o on line 3 n = 0
Output for 7.0.0 - 7.0.20
n = 0
Output for 5.3.19 - 5.6.28
n = 47