3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = "18.07.2012 на портале дата рождения 04.08.2014!!!"; var_dump(date_parse($text));
based on Thjv4
Output for 5.2.0 - 7.2.0
array(12) { ["year"]=> int(2012) ["month"]=> int(7) ["day"]=> int(18) ["hour"]=> bool(false) ["minute"]=> bool(false) ["second"]=> bool(false) ["fraction"]=> bool(false) ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(46) ["errors"]=> array(46) { [11]=> string(20) "Unexpected character" [12]=> string(20) "Unexpected character" [13]=> string(20) "Unexpected character" [14]=> string(20) "Unexpected character" [16]=> string(20) "Unexpected character" [17]=> string(20) "Unexpected character" [18]=> string(20) "Unexpected character" [19]=> string(20) "Unexpected character" [20]=> string(20) "Unexpected character" [21]=> string(20) "Unexpected character" [22]=> string(20) "Unexpected character" [23]=> string(20) "Unexpected character" [24]=> string(20) "Unexpected character" [25]=> string(20) "Unexpected character" [26]=> string(20) "Unexpected character" [27]=> string(20) "Unexpected character" [28]=> string(20) "Unexpected character" [29]=> string(20) "Unexpected character" [31]=> string(20) "Unexpected character" [32]=> string(20) "Unexpected character" [33]=> string(20) "Unexpected character" [34]=> string(20) "Unexpected character" [35]=> string(20) "Unexpected character" [36]=> string(20) "Unexpected character" [37]=> string(20) "Unexpected character" [38]=> string(20) "Unexpected character" [40]=> string(20) "Unexpected character" [41]=> string(20) "Unexpected character" [42]=> string(20) "Unexpected character" [43]=> string(20) "Unexpected character" [44]=> string(20) "Unexpected character" [45]=> string(20) "Unexpected character" [46]=> string(20) "Unexpected character" [47]=> string(20) "Unexpected character" [48]=> string(20) "Unexpected character" [49]=> string(20) "Unexpected character" [50]=> string(20) "Unexpected character" [51]=> string(20) "Unexpected character" [52]=> string(20) "Unexpected character" [53]=> string(20) "Unexpected character" [54]=> string(20) "Unexpected character" [55]=> string(20) "Unexpected character" [57]=> string(25) "Double date specification" [67]=> string(20) "Unexpected character" [68]=> string(20) "Unexpected character" [69]=> string(20) "Unexpected character" } ["is_localtime"]=> bool(false) }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function date_parse() in /in/BsOZF on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_parse() in /in/BsOZF on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_parse() in /in/BsOZF on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_parse() in /in/BsOZF on line 3