3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = DateTime::createFromFormat('YmdGis','15-Feb-2009'); print_r(DateTime::getLastErrors()); echo $date->format('YmdGis');
Output for git.master, git.master_jit
Array ( [warning_count] => 1 [warnings] => Array ( [11] => The parsed date was invalid ) [error_count] => 2 [errors] => Array ( [2] => Unexpected data found. [11] => Not enough data available to satisfy format ) ) Fatal error: Uncaught Error: Call to a member function format() on bool in /in/q8AOa:5 Stack trace: #0 {main} thrown in /in/q8AOa on line 5
Process exited with code 255.
Output for rfc.property-hooks
Array ( [warning_count] => 1 [warnings] => Array ( [11] => The parsed date was invalid ) [error_count] => 2 [errors] => Array ( [2] => Unexpected data found. [11] => Not enough data available to satisfy format ) ) Fatal error: Uncaught Error: Call to a member function format() on false in /in/q8AOa:5 Stack trace: #0 {main} thrown in /in/q8AOa on line 5
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.59 ms | 401 KiB | 8 Q