3v4l.org

run code in 300+ PHP versions simultaneously
<?php $DEST = '["ADT - HomeSecurityRatings","http://www.protectyourhome.com/partner/dl-01t-wl","100","ADT - HomeSecurityRatings","http://quickpixel.net/?a=653&amp;c=21503&amp;s1 ","0"]'; $array = explode(',',$DEST); $iter = 0; $max = count($array); $records = $max/3; $result = array(); $row = array(); $row = []; for ($j =0;$j<$records; $j++) { $index = ($j*3)+$j; if ($j==0) { $index--; } $result[]=array($array[$index],$array[$index+1],$array[$index+2]); } print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key -1 in /in/vXFSG on line 16 Warning: Undefined array key 6 in /in/vXFSG on line 16 Array ( [0] => Array ( [0] => [1] => ["ADT - HomeSecurityRatings" [2] => "http://www.protectyourhome.com/partner/dl-01t-wl" ) [1] => Array ( [0] => "http://quickpixel.net/?a=653&amp;c=21503&amp;s1 " [1] => "0"] [2] => ) )

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:
44.16 ms | 402 KiB | 8 Q