3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var[0] = array('Tokyo' => '東京', 'Osaka' => '大阪', 'Fukuoka' => '福岡'); $var[1] = array('Tokyo' => '東京?', 'Osaka' => '大阪?', 'Fukuoka' => '福岡?'); $rental_book_id = array(); foreach($var as $i){ $rental_book_id[]=$i; } echo $rental_book_id
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/C0oY7 on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/C0oY7 on line 12
Process exited with code 255.