3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = "This is a test string, which is used for demonstrating the tokenization using PHP. PHP is a very (strong) scripting-language"; $words = array_unique(str_word_count(preg_replace('/-/', ' ', $content), 1)); print "<pre>"; print_r($words); print "</pre>"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [0] => This [1] => is [2] => a [3] => test [4] => string [5] => which [7] => used [8] => for [9] => demonstrating [10] => the [11] => tokenization [12] => using [13] => PHP [17] => very [18] => strong [19] => scripting [20] => language ) </pre>

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.12 ms | 402 KiB | 8 Q