3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Things: string { case Such = 'such'; } $string_from_outside_world = 'such'; $outside_world_thing = Things::from($string_from_outside_world); var_dump('such' === Things::Such); var_dump($outside_world_thing === Things::Such);
Output for git.master_jit, git.master
bool(false) bool(true)

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:
39.38 ms | 728 KiB | 4 Q