3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} var_dump(new a instanceof A); // true var_dump(new a instanceof A::class); // Fatal error var_dump(is_a(new a, A::class)); // true var_dump(is_a(new a, A); // Undefined constant A
Output for git.master_jit, git.master
Parse error: syntax error, unexpected token "class", expecting variable or "$" in /in/ojvjm on line 8
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:
147.06 ms | 1342 KiB | 6 Q