3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = DateTime::createFromFormat('H:i', $my_time1); $date2 = new DateTime('H:i'); if ($date1 > $date2) { // do something }
Output for git.master, git.master_jit
Warning: Undefined variable $my_time1 in /in/dUEb7 on line 2 Deprecated: DateTime::createFromFormat(): Passing null to parameter #2 ($datetime) of type string is deprecated in /in/dUEb7 on line 2 Fatal error: Uncaught Exception: Failed to parse time string (H:i) at position 1 (:): Unexpected character in /in/dUEb7:3 Stack trace: #0 /in/dUEb7(3): DateTime->__construct('H:i') #1 {main} thrown in /in/dUEb7 on line 3
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined variable $my_time1 in /in/dUEb7 on line 2 Deprecated: DateTime::createFromFormat(): Passing null to parameter #2 ($datetime) of type string is deprecated in /in/dUEb7 on line 2 Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (H:i) at position 1 (:): Unexpected character in /in/dUEb7:3 Stack trace: #0 /in/dUEb7(3): DateTime->__construct('H:i') #1 {main} thrown in /in/dUEb7 on line 3
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:
66.62 ms | 401 KiB | 8 Q