3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = DateTime::createFromFormat('Y-m-d'+'T'+'H:i:s', "1951-03-14T00:00:00"); if (is_object($date)) { // or $date === false echo $date->format('d/m/Y'); } echo 'aaaa';
based on TsKYS
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/cKrAV on line 2 Warning: A non-numeric value encountered in /in/cKrAV on line 2 Warning: A non-numeric value encountered in /in/cKrAV on line 2 aaaa
Output for 5.3.20 - 7.0.20
aaaa