3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '{ "time":20211101, "data":" [[1630454700,0.01823,0.01823,0.01823,0.01823,5366.009589], [1630461840,0.01876,0.01877,0.01876,0.01877,5713.905167], [1630462080,0.01877,0.01877,0.01877,0.01877,1039.957378], [1630477560,0.01777,0.01776,0.01778,0.01779,1000.000000]]" }'; $parsed = json_decode($text, true); $data = json_decode($parsed['data'], true); foreach ($data as $i => $row) { foreach ($row as $j => $val) { echo("$val | "); } echo("\n"); }
Output for git.master, git.master_jit, rfc.property-hooks
1630454700 | 0.01823 | 0.01823 | 0.01823 | 0.01823 | 5366.009589 | 1630461840 | 0.01876 | 0.01877 | 0.01876 | 0.01877 | 5713.905167 | 1630462080 | 0.01877 | 0.01877 | 0.01877 | 0.01877 | 1039.957378 | 1630477560 | 0.01777 | 0.01776 | 0.01778 | 0.01779 | 1000 |

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