3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = <<<'code' <?php function system_update_10101(&$sandbox = NULL) { } code; $tokens = token_get_all($source, TOKEN_PARSE); foreach ($tokens as $token) { if (is_array($token)) { echo token_name($token[0]) , PHP_EOL; } } var_dump($tokens[2]); var_dump($tokens[4]);
Output for git.master_jit, git.master
T_OPEN_TAG T_WHITESPACE T_FUNCTION T_WHITESPACE T_STRING T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG T_VARIABLE T_WHITESPACE T_WHITESPACE T_STRING T_WHITESPACE T_WHITESPACE T_WHITESPACE array(3) { [0]=> int(347) [1]=> string(8) "function" [2]=> int(3) } array(3) { [0]=> int(313) [1]=> string(19) "system_update_10101" [2]=> int(3) }
Output for rfc.property-hooks
T_OPEN_TAG T_WHITESPACE T_FUNCTION T_WHITESPACE T_STRING T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG T_VARIABLE T_WHITESPACE T_WHITESPACE T_STRING T_WHITESPACE T_WHITESPACE T_WHITESPACE array(3) { [0]=> int(348) [1]=> string(8) "function" [2]=> int(3) } array(3) { [0]=> int(313) [1]=> string(19) "system_update_10101" [2]=> int(3) }

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:
22.4 ms | 407 KiB | 5 Q