3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON [ [ 51.11041991029261, -2.274169921875 ], [ 51.08282186160978, -3.460693359375 ], [ 50.443513052458044, -3.570556640625 ], [ 50.443513052458044, -1.966552734375 ] ] JSON; $coords = json_decode($json, true); $lats = array_column($coords, 0); $lons = array_column($coords, 1); var_dump($lats, $lons);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> float(51.11041991029261) [1]=> float(51.08282186160978) [2]=> float(50.443513052458044) [3]=> float(50.443513052458044) } array(4) { [0]=> float(-2.274169921875) [1]=> float(-3.460693359375) [2]=> float(-3.570556640625) [3]=> float(-1.966552734375) }

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