3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $values = array( 'one' => array( 'title' => 'Title One', 'uri' => 'http://example.com/one', ), 'two' => array( 'title' => 'Title Two', 'uri' => 'http://example.com/two', ), ); $a = function($values) { $return = array(); foreach($values as $value) $return[] = '<a href="' . $value['uri'] . '">' . $value['title'] . '</a>'; return $return; }; $final_string = implode(' | ', &$a);
Output for 5.4.0 - 5.4.16
Fatal error: Call-time pass-by-reference has been removed in /in/p4beX on line 23
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/p4beX on line 23 Warning: implode(): Invalid arguments passed in /in/p4beX on line 23