fork download
  1. <?php
  2.  
  3. $_GET['name'] = "bob";
  4.  
  5. function $myvar($str){ return $str; }
  6. //eval('$data = myvar("https://w...content-available-to-author-only...e.com/json/id='. $_GET['name'] .'");');
  7. eval("\$data = myvar('https://w...content-available-to-author-only...e.com/json/id=". $_GET['name'] ."');");
  8. echo $data;
  9.  
Runtime error #stdin #stdout #stderr 0.02s 24400KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected '$myvar' (T_VARIABLE), expecting '(' in /home/G2RpD0/prog.php on line 5