3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { var_dump(func_get_arg()); } $str = '\', phpinfo(), \''; preg_replace('/^(.*)$/e', 'test(\'\1\')', $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiLiS
function name:  (null)
number of ops:  7
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, '%27%2C+phpinfo%28%29%2C+%27'
    8     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5E%28.%2A%29%24%2Fe'
          3        SEND_VAL                                                 'test%28%27%5C1%27%29'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiLiS
function name:  test
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'func_get_arg'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
    5     5      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.2 ms | 1386 KiB | 19 Q