3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = token_get_all("<?php $builder = new StdClass(); $builder->add('username', TextType::class, array('label' => 'form.username'))"); foreach ($a as $t) { if (isset($t[1])) { echo token_name($t[0]), "\n"; } else { echo $t, "\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $builder in /in/Y76B0 on line 3 Warning: Undefined variable $builder in /in/Y76B0 on line 3 Warning: Attempt to read property "add" on null in /in/Y76B0 on line 3 T_OPEN_TAG T_WHITESPACE = T_WHITESPACE T_NEW T_WHITESPACE T_STRING ( ) ; T_WHITESPACE ( T_CONSTANT_ENCAPSED_STRING , T_WHITESPACE T_STRING T_DOUBLE_COLON T_CLASS , T_WHITESPACE T_ARRAY ( T_CONSTANT_ENCAPSED_STRING T_WHITESPACE T_DOUBLE_ARROW T_WHITESPACE T_CONSTANT_ENCAPSED_STRING ) )

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:
46.97 ms | 402 KiB | 8 Q