3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getName($name) { echo $name; } $firstname = (int)4; $name = $firstname + "madeupsurname"; getName($name);
Output for 7.1.0
Warning: A non-numeric value encountered in /in/am9ho on line 9 4
Output for 5.2.12 - 7.0.14
4