3v4l.org

run code in 150+ 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.3.0 - 5.4.24
Parse error: syntax error, unexpected '[' in /in/WOTvq on line 9
Process exited with code 255.