3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo(is_object(5) ? "object\n" : "false\n"); echo(is_object($var) ? "object\n" : "false\n"); echo(is_object(null) ? "object\n" : "false\n"); echo(is_object(new Exception()) ? "object\n" : "false\n"); echo(is_object(array("foo"=>"bar")) ? "object\n" : "false\n"); echo(is_object("pingas") ? "object\n" : "false\n"); echo(is_object("/.*/") ? "object\n" : "false\n"); ?>
Output for git.master, git.master_jit, rfc.property-hooks
false Warning: Undefined variable $var in /in/HYYvl on line 4 false false object false false false

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:
53.6 ms | 401 KiB | 8 Q