3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dob = '1918-05-22'; $dob_time = strtotime($dob); $dob_formatted = date('Y-m-d', $dob_time); print $dob_formatted . PHP_EOL;
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.0beta1
1918-05-22
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/vrqmK on line 9 1918-05-22PHP_EOL