3v4l.org

run code in 300+ PHP versions simultaneously
<?php //print_r(unserialize('a:1:{s:5:"title";a:1:{s:2:"en";s:4:"Home";}}')); //echo serialize(array('titile' => array('en' => 'Home', 'de' => 'Heim'))); $array = array( 'title' => array( 'en' => 'Home' ) ); array_push($array['title'], 'de' => 'heim'); print_r($array);
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in Wv0q0 on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.24, 5.3.26
Parse error: syntax error, unexpected T_DOUBLE_ARROW in Wv0q0 on line 12
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /in/cbEnQ on line 12
Process exited with code 255.

preferences:
177.14 ms | 1395 KiB | 51 Q