3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const FOO = ["a" => 0, "b" => 1, "b" => 2, "d" => 3]; public function getTest() { $a = ["a" => 0, "b" => 1, "b" => 2, "d" => 3]; var_dump(empty($a["not_found"])); $b = self::FOO; var_dump(empty($b["not_found"])); var_dump(empty(self::FOO["not_found"])); } } (new Test)->getTest();
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) bool(true) 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:
66.13 ms | 401 KiB | 8 Q