3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'DC, Maryland, Northern-Virginia', 'North-Carolina, Virginia', ]; $result = []; foreach ($array as $string) { array_push($result, ...explode(', ', $string)); } var_export($result);
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => 'DC', 1 => 'Maryland', 2 => 'Northern-Virginia', 3 => 'North-Carolina', 4 => 'Virginia', )

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:
74.39 ms | 405 KiB | 5 Q