3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array=array(array('month'=> 3, 'day'=> 4, 'hour' => 1, 'minut' => 15, 'year'=> 2014), array('month'=> 5, 'day'=> 7, 'hour' => 1, 'minut' => 50, 'year'=> 2012) ); var i=0; foreach($my_array as $k => $v) { $new_array[i] = $v["year"]."-".$v["month"]."-".$v["day"]." ".$v["hour"].$v["minut"]; i++; }
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'var' (T_VAR) in /in/TRZ3O on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VAR in /in/TRZ3O on line 14
Process exited with code 255.

preferences:
182.43 ms | 1395 KiB | 62 Q