3v4l.org

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