3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); enum Foo: int { case Bar = 0; } var_dump(Foo::from('0e0'));
Output for git.master, git.master_jit
Fatal error: Uncaught TypeError: Foo::from(): Argument #1 ($value) must be of type int, string given in /in/WIluI:7 Stack trace: #0 /in/WIluI(7): Foo::from('0e0') #1 {main} thrown in /in/WIluI on line 7
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:
65.79 ms | 931 KiB | 4 Q