3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "18.07.2012 на портале дата рождения 04.08.2014!!!"; var_dump(date_parse($text));
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.0.5, 5.1.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.3.11, 4.4.0 - 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

preferences:
343.72 ms | 401 KiB | 454 Q