3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('leg1'=>'LA', 'leg2'=>'NY', 'leg3'=>'NY', 'leg4'=>'NY', 'leg5'=>'FL'); foreach($a as $b){ if(isset($next($b))) echo 'asd'; }
Output for 5.3.0 - 5.4.30
Fatal error: Can't use function return value in write context in /in/S39jH on line 5
Process exited with code 255.