3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $values['test']['radio'] = "foo']) OR die('RCE');"; $myVar = "['test']['radio']"; eval("\$x = (isset(\$values$myVar)) ? \$values$myVar : 'failed';"); print_r($x); */ $val = '"test"; echo "hacked code running";'; eval("\$x = $val");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PHXsR
function name:  (null)
number of ops:  5
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, '%22test%22%3B+echo+%22hacked+code+running%22%3B'
   12     1        NOP                                                      
          2        FAST_CONCAT                                      ~2      '%24x+%3D+', !0
          3        INCLUDE_OR_EVAL                                          ~2, EVAL
          4      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.11 ms | 1392 KiB | 13 Q