3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(is_numeric("32.00")); class foo { function get_flags($uid = NULL, $set=TRUE) { $flags = $this->get_metadata('flags', $uid); if($flags == FALSE){ return FALSE; } if($set){$this->flags = $flags;} return $flags; } function get_metadata($field, $uid) { print $field.$uid; } } var_dump($foo->get_flags(1, false));
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) Warning: Undefined variable $foo in /in/lIh7l on line 20 Fatal error: Uncaught Error: Call to a member function get_flags() on null in /in/lIh7l:20 Stack trace: #0 {main} thrown in /in/lIh7l on line 20
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:
57.11 ms | 401 KiB | 8 Q