3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( array( "label" => "Email", "email" => "satchin.joshi@gmail.com", "primary" => 1 ),array( "label" => "Email 2", "email" => "satchin.2@gmail.com", "primary" => 0 ),array( "label" => "Eamnil 3", "email" => "satchin.3@gmail.com", "primary" => 0 ),array( "label" => "Eamnil 4", "email" => "satchin.4@gmail.com", "primary" => 0 ), ); foreach($a as $k => $v) { echo $k; }
based on pkPEB
Output for 4.3.0 - 7.2.0
0123