3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = [ 'data' => [ 'row_3' => [ 'viagem' => [ 'veiculo_id' => '1', 'motorista_id' => '1', 'data' => '2019-06-05', 'destino' => 'A', 'vrUnit' => '', 'horaSaida' => '00:00:00', ] ] ] ]; echo $_POST['data']['row_3']['viagem']['destino']; echo "\n---\n"; $rowKey = key($_POST['data']); // no need to generate an entire temporary array of keys echo $_POST['data'][$rowKey]['viagem']['destino'];
Output for git.master, git.master_jit, rfc.property-hooks
A --- A

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:
41.22 ms | 1460 KiB | 4 Q