3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Monkey{} $gibbon = new Monkey; $gibbon->name = 'Librarian'; function splort() { global $gibbon; if($gibbon->name == 'Librarian') echo "Ook."; else echo 'Boing!'; } register_shutdown_function('splort'); echo "Time for go to bed.";
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property Monkey::$name is deprecated in /in/9k5XJ on line 5 Time for go to bed.Ook.

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