3v4l.org

run code in 300+ PHP versions simultaneously
<?php $node = (object) array( 'nid' => 5, ); $data = array( 'subject' => 'subject', 'content' => 'Some string', ); // For some cases rewrite the content if ($node->nid > 5) { $content = $data['content'] . '<ul><li>List</li><li>with</li><li>some</li><li>items</li>'; $data['content'] = array( '#markupt' => $content, '#attached' => array( 'js' => array( 'some_file.js', ), ), ); } if (!isset($data['content']['#markup'])) { $data['content'] = array( '#markup' => $data['content'], ); } print_r($data);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [subject] => subject [content] => Array ( [#markup] => Some 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:
66.26 ms | 401 KiB | 8 Q