3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ['status.1', 'status.2', 'status.3', 'country.244', 'country.24', 'country.845', 'pm.4', 'pm.9', 'pm.6']; foreach ($data as $value) { [$prefix, $$prefix[]] = explode('.', $value, 2); } var_export($status); echo "\n"; var_export($country); echo "\n"; var_export($pm);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => '1', 1 => '2', 2 => '3', ) array ( 0 => '244', 1 => '24', 2 => '845', ) array ( 0 => '4', 1 => '9', 2 => '6', )

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