3v4l.org

run code in 150+ 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; } var_dump($rental_book_id)
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected end of file in /in/acimM on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/acimM on line 12
Process exited with code 255.