3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = "abcabcbb"; // string to array $sArray = str_split($s); echo '<pre>';print_r($sArray);echo '</pre>';die; foreach ($s as $char) { } echo '<pre>';print_r($s);echo '</pre>';die;
Output for git.master_jit, git.master
<pre>Array ( [0] => a [1] => b [2] => c [3] => a [4] => b [5] => c [6] => b [7] => b ) </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:
18.67 ms | 754 KiB | 4 Q