3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.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