3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonString = '{"head":["Vehicle Name","2015-10-05","2015-10-06","2015-10-07","2015-10-08","2015-10-09","2015-10-13","2015-10-15","2015-10-16","2015-10-17","2015-10-18","2015-10-19"],"body":[[["V CLASS","1"],["40","","6","2015-10-05"],["41","prova2_2 prova2_2","2","2015-10-06"],["64","","2","2015-10-07"],["65","","2","2015-10-08"],["66","","2","2015-10-09"],["69","","2","2015-10-13"],["35","","6","2015-10-15"],["36","","6","2015-10-16"],["37","","6","2015-10-17"],["38","","6","2015-10-18"],["39","","6","2015-10-19"]],[["CARAVELLE[AB123CD]","2"],["","","","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["4","Driver_6 Driver_6","8","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["MAGELYS","5"],["42","driverFront office","54","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["NN","12"],["70","Autista 2 driver 2.0","25","2015-10-05"],["","","","2015-10-06"],["71","","6","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["49","prova_3 prova_3","25","2015-10-15"],["","","","2015-10-16"],["48","","25","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["NN","16"],["50","prova asdasd","25","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["E CLASS","17"],["","","","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["55","","2","2015-10-13"],["57","","2","2015-10-15"],["58","","2","2015-10-16"],["59","","2","2015-10-17"],["60","","2","2015-10-18"],["61","","2","2015-10-19"]],[["E CLASS","19"],["","","","2015-10-05"],["51","","3","2015-10-06"],["52","","3","2015-10-07"],["53","","3","2015-10-08"],["54","","3","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["V CLASS","25"],["","","","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["S CLASS","30"],["","","","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["VIANO","31"],["","","","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["S CLASS","33"],["","","","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["SPRINTER","34"],["","","","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["prova_1","35"],["","","","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["S CLASS","37"],["","","","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]],[["CARAVELLE","38"],["","","","2015-10-05"],["","","","2015-10-06"],["","","","2015-10-07"],["","","","2015-10-08"],["","","","2015-10-09"],["","","","2015-10-13"],["","","","2015-10-15"],["","","","2015-10-16"],["","","","2015-10-17"],["","","","2015-10-18"],["","","","2015-10-19"]]],"total":"15"}'; $json = json_decode($jsonString, true); for($i = 0; $i < count($json["body"]); $i ++){ $row = $json["body"][$i]; echo "$i -> ".$row[0][0]." | ".$json["body"][count($json["body"])-1][0][0]."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
0 -> V CLASS | CARAVELLE 1 -> CARAVELLE[AB123CD] | CARAVELLE 2 -> MAGELYS | CARAVELLE 3 -> NN | CARAVELLE 4 -> NN | CARAVELLE 5 -> E CLASS | CARAVELLE 6 -> E CLASS | CARAVELLE 7 -> V CLASS | CARAVELLE 8 -> S CLASS | CARAVELLE 9 -> VIANO | CARAVELLE 10 -> S CLASS | CARAVELLE 11 -> SPRINTER | CARAVELLE 12 -> prova_1 | CARAVELLE 13 -> S CLASS | CARAVELLE 14 -> CARAVELLE | CARAVELLE

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:
111.64 ms | 410 KiB | 6 Q