3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = time(); // your code goes here //array_push (配列, 追加要素1, 追加要素2,...); $ar = array("PHP", "CGI"); array_push($ar, "Perl", "JAVA", date("Y/m/d H:i:s",$date)); //print_r($ar); foreach ($ar as $result){ echo $result; }
based on o4QBp
Output for 5.6.28, 7.0.20 - 7.2.0
PHPCGIPerlJAVA2015/09/24 17:29:29
Output for 5.4.0 - 5.6.23, 7.0.0 - 7.0.8
PHPCGIPerlJAVA2015/09/24 17:29:28