3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fromDate = '25-11-2013'; $fromDate = sprintf('%d-%d-%d', $d, $m, $Y); $strFromDate = date("Y-m-d", strtotime("$Y-$m-$d")); echo $strFromDate; // 2018-05-06
Output for 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: d in /in/CEqJ5 on line 3 Notice: Undefined variable: m in /in/CEqJ5 on line 3 Notice: Undefined variable: Y in /in/CEqJ5 on line 3 Notice: Undefined variable: Y in /in/CEqJ5 on line 4 Notice: Undefined variable: m in /in/CEqJ5 on line 4 Notice: Undefined variable: d in /in/CEqJ5 on line 4 1970-01-01
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/CEqJ5 on line 5
Process exited with code 255.
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: d in /in/CEqJ5 on line 3 Notice: Undefined variable: m in /in/CEqJ5 on line 3 Notice: Undefined variable: Y in /in/CEqJ5 on line 3 Notice: Undefined variable: Y in /in/CEqJ5 on line 4 Notice: Undefined variable: m in /in/CEqJ5 on line 4 Notice: Undefined variable: d in /in/CEqJ5 on line 4 2013-11-25
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: d in /in/CEqJ5 on line 3 Notice: Undefined variable: m in /in/CEqJ5 on line 3 Notice: Undefined variable: Y in /in/CEqJ5 on line 3 Notice: Undefined variable: Y in /in/CEqJ5 on line 4 Notice: Undefined variable: m in /in/CEqJ5 on line 4 Notice: Undefined variable: d in /in/CEqJ5 on line 4 2013-11-25