3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (version_compare(PHP_VERSION, '5.4.0', 'lt')) { class_alias('My\ArrayObject', 'Component\ArrayObject'); } else { class_alias('ArrayObject', 'Component\ArrayObject'); }
Output for git.master, git.master_jit
Fatal error: Uncaught ValueError: class_alias(): Argument #1 ($class) must be a user-defined class name, internal class name given in /in/Qtmoh:6 Stack trace: #0 /in/Qtmoh(6): class_alias('ArrayObject', 'Component\\Array...') #1 {main} thrown in /in/Qtmoh on line 6
Process exited with code 255.
Output for rfc.property-hooks

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