3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTimeZone( "+99:62" ); $n = $d->getName(); var_dump($d,$d->getName()); $d2 = new DateTimeZone( $n );
Output for git.master_jit, git.master
object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(1) ["timezone"]=> string(7) "+100:0" } string(7) "+100:0" Fatal error: Uncaught ValueError: DateTimeZone::__construct(): Argument #1 ($timezone) must not contain any null bytes in /in/l7tiQ:6 Stack trace: #0 /in/l7tiQ(6): DateTimeZone->__construct('+100:0\x00') #1 {main} thrown in /in/l7tiQ on line 6
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of range (+99:62) in /in/l7tiQ:3 Stack trace: #0 /in/l7tiQ(3): DateTimeZone->__construct('+99:62') #1 {main} thrown in /in/l7tiQ 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:
100.57 ms | 407 KiB | 5 Q