3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = intval('1e1'); $y = (string) $x; var_dump($x); var_dump($y);
based on 7iSn5
Output for 7.1.0 - 7.2.0
int(10) string(2) "10"
Output for 5.3.19 - 7.0.20
int(1) string(1) "1"