3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $search_tags = array( "happy", "summer", "beach", "glasses", "umbrella", "funny", "people", "music", "rap" ); $accounts = array( "account A", "account B", "account C" ); $accounts = new InfiniteIterator(new ArrayIterator((object) $accounts)); echo ucfirst($accounts->current()), PHP_EOL; echo ucfirst($accounts->current()), PHP_EOL;
Output for 5.3.0 - 5.6.30, hhvm-3.10.1, 7.0.0 - 7.2.0
Output for hhvm-3.11.1 - 3.17.3
Warning: ucfirst() expects parameter 1 to be string, null given in /in/X7jRC on line 21 Warning: ucfirst() expects parameter 1 to be string, null given in /in/X7jRC on line 22