3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = '09:40 - 10:40'; //echo explode('-', $d); $pizza = "piece1 piece2 - piece3 piece4 piece5 piece6"; $pieces = explode("-", $pizza); print_r($pieces); //echo date('w', strtotime($d->format('Y-m-d'))); //echo date("H:i:s", strtotime($d);
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => piece1 piece2 [1] => piece3 piece4 piece5 piece6 )
Output for 5.1.0
<br /> <b>Fatal error</b>: fatal flex scanner internal error--end of buffer missed in <b>/in/rgGsD</b> on line <b>10</b><br />
Process exited with code 255.