3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contact_rec = array( 0 => "alice" 1 => "bob", 2 => "charlie", 3 => "denise", 4 => "erynn", ); $contact_rec[0]=""; //The emails of the client foreach($contact as $key => $value) { if($value['email'] != null) $contact_rec[] = $value['email']; } foreach($contact_rec as $key => $value) { $contact_rec[$value] = $value; unset($contact_rec[$key]); }
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected '1' (T_LNUMBER), expecting ')' in f9avd on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected T_LNUMBER, expecting ')' in f9avd on line 5
Process exited with code 255.

preferences:
171.01 ms | 1399 KiB | 39 Q