3v4l.org

run code in 200+ PHP versions simultaneously
<?php $arr=array(1, 2, 3); foreach( $arr as $v); var_dump(current($arr));
Output for 7.0.0 - 7.4.6
int(1)
Output for 4.3.0 - 5.6.28
bool(false)