3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // the entire array $array = Array ( 0 => Array ( 'job_id' => 77, 'signers_id' => 2, 's_last_name' => 'Tesarski', 's_first_name' => 'Karolina', 'fk_comp_id' => 2, 'comp_name' => 'Qart' ), 1 => Array ( 'job_id' => 83, 'signers_id' => 1, 's_last_name' => 'McLeary', 's_first_name' => 'Eon', 'fk_comp_id' => 3, 'comp_name' => 'REI' ), 2 => Array ( 'job_id' => 83, 'signers_id' => 4, 's_last_name' => 'McLeary', 's_first_name' => 'James', 'fk_comp_id' => 3, 'comp_name' => 'REI' ), 3 => Array ( 'job_id' => 84, 'signers_id' => 3, 's_last_name' => 'Hally', 's_first_name' => 'Marvin', 'fk_comp_id' => 4, 'comp_name' => 'Starbucks' ) ); foreach($array as $array => $arr0){ foreach($arr0 as $key = $value){ echo $value[0]['job_id']; }
based on fLaBD
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected '=', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /in/NqTUP on line 47
Process exited with code 255.
Output for 5.3.21 - 5.6.16
Parse error: syntax error, unexpected '=', expecting ')' in /in/NqTUP on line 47
Process exited with code 255.