3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sampleFileContents = <<<'TAG' <?php /* --------------------------------------------------------------------------------- - PHP Version : 4.0 - - This code was created on : 2021/11/29 at 00:10 - - Checksum : d8d8000bfc33a4eba1e6b51b8fc71312 - ---------------------------------------------------------------------------------- */ TAG; $tokens = token_get_all($sampleFileContents); $comments = array(); foreach ($tokens as $token) { if ($token[0] == T_COMMENT || $token[0] == T_DOC_COMMENT) { $comments[] = $token[1]; } } print_r($comments);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => /* --------------------------------------------------------------------------------- - PHP Version : 4.0 - - This code was created on : 2021/11/29 at 00:10 - - Checksum : d8d8000bfc33a4eba1e6b51b8fc71312 - ---------------------------------------------------------------------------------- */ )

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