3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'messages' => [ [ 'lat' => '', 'lon' => '', 'notifyName' => '', 'type' => 'chat', ], [ 'formattedTitle' => 'Вы', 'fromMe' => true, 'notifyName' => NULL, 'quotedMsg' => '', 'type' => 'chat', ], [ '_id' => '60e4230e1703a835a93ed575', 'type' => 'image', 'fromMe' => false, 'caption' => '', 'timestamp' => 1625563914, ], ] ]; foreach ($data['messages'] as $message) { var_dump($message); }
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { ["lat"]=> string(0) "" ["lon"]=> string(0) "" ["notifyName"]=> string(0) "" ["type"]=> string(4) "chat" } array(5) { ["formattedTitle"]=> string(4) "Вы" ["fromMe"]=> bool(true) ["notifyName"]=> NULL ["quotedMsg"]=> string(0) "" ["type"]=> string(4) "chat" } array(5) { ["_id"]=> string(24) "60e4230e1703a835a93ed575" ["type"]=> string(5) "image" ["fromMe"]=> bool(false) ["caption"]=> string(0) "" ["timestamp"]=> int(1625563914) }

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:
163.96 ms | 407 KiB | 5 Q