3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ "", "2", "22", "223", "2233", "22334", "223344", "2233444", "22334455" ]; $pattern = '/\S\S\K(?=\S\S)/'; foreach ($data as $item) { var_export(preg_split($pattern, $item)); }
Output for git.master, git.master_jit
array ( 0 => '', )array ( 0 => '2', )array ( 0 => '22', )array ( 0 => '223', )array ( 0 => '22', 1 => '33', )array ( 0 => '22', 1 => '334', )array ( 0 => '22', 1 => '33', 2 => '44', )array ( 0 => '22', 1 => '33', 2 => '444', )array ( 0 => '22', 1 => '33', 2 => '44', 3 => '55', )

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:
49.26 ms | 406 KiB | 5 Q