3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $testArray = array("monday", "December", "February 2014"); $unixArray = array(); for($i = 0, $size = count($testArray); $i < $size; ++$i) { $testDate = $testArray[$i]; $unixArray[$i] = strtotime($testDate); } echo "ci sono ", count($unixArray); echo " valori \n" ; for($i = 0, $size = count($unixArray); $i < $size; ++$i) { $unixDate = $unixArray[$i]; echo <b>$testArray[$i]</b>, " "; // echo $unixDate, " "; echo date('l H\:iO',$unixDate), "\n"; // echo date('r',$unixDate), "\n"; }
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected '<' in /in/OU0ke on line 11
Process exited with code 255.