3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} file_put_contents("/tmp/include-test-A.php", "<?php class A { }"); include("/tmp/include-test-A.php"); $a = new \A(); file_put_contents("/tmp/include-test-B.php", "<?php class B { }"); include("/tmp/include-test-B.php"); $b = new \B();
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Cannot declare class A, because the name is already in use in /tmp/include-test-A.php on line 1
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:
37.49 ms | 401 KiB | 8 Q