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 $value){ $id_list[$value['job_id']][] = $value['comp_name']; $id_list[$value['job_id']][] = $value['s_last_name'] . ", " . $value['s_first_name']; } echo '<pre>'; print_rarray_unique($id_list[88]); echo '</pre>'; echo '<pre>'; print_r($id_list); echo '</pre>';
based on PVJ0j
Output for 7.0.0 - 7.2.0
<pre> Fatal error: Uncaught Error: Call to undefined function print_rarray_unique() in /in/eNfFJ:50 Stack trace: #0 {main} thrown in /in/eNfFJ on line 50
Process exited with code 255.
Output for 5.3.21 - 5.6.28
<pre> Fatal error: Call to undefined function print_rarray_unique() in /in/eNfFJ on line 50
Process exited with code 255.