3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = 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/vPSeM on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/vPSeM on line 9
Process exited with code 255.