3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = explode('|', '0|'); $ret = (int)array_shift($a); var_dump($ret); var_dump(isset($a[0])); var_dump($a[0]); //
based on ObGk2
Output for 5.5.0 - 7.3.0beta1
int(0) bool(true) string(0) ""