3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = "25 / aug/ust/ 2009"; $result = explode('/',$date); //var_dump($result); //$arr = {'heloo','wolrd'}; // $result = implode() print_r($result); $arr = array('Hello','World!','Beautiful','Day!'); echo implode(" ",$arr); $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 ( [0] => 25 [1] => aug [2] => ust [3] => 2009 ) Hello World! Beautiful Day!1970/01/01