3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.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.

preferences:
174.96 ms | 1395 KiB | 67 Q