3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = "25 august 2009"; $result = explode(' ',$date); var_dump($result); print_r($result); $my_date = date('Y/m/d', strtotime($date)); echo $my_date;
Output for 4.3.0 - 7.2.0
array(3) { [0]=> string(2) "25" [1]=> string(6) "august" [2]=> string(4) "2009" } Array ( [0] => 25 [1] => august [2] => 2009 ) 2009/08/25