3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_input = 'dummy {}echo"hi";//'; spl_autoload_register(function ($class_name) { eval('class '.$class_name.' {}'); }); call_user_func(array($user_input,'function')); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XbHMU
function name:  (null)
number of ops:  10
compiled vars:  !0 = $user_input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'dummy+%7B%7Decho%22hi%22%3B%2F%2F'
    3     1        INIT_FCALL                                               'spl_autoload_register'
          2        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
    5     3        SEND_VAL                                                 ~2
    3     4        DO_ICALL                                                 
    7     5        INIT_ARRAY                                       ~4      !0
          6        ADD_ARRAY_ELEMENT                                ~4      'function'
          7        INIT_USER_CALL                                0          'call_user_func', ~4
          8        DO_FCALL                                      0          
    8     9      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XbHMU
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $class_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        CONCAT                                           ~1      'class+', !0
          2        CONCAT                                           ~2      ~1, '+%7B%7D'
          3        INCLUDE_OR_EVAL                                          ~2, EVAL
    5     4      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
299.43 ms | 1010 KiB | 14 Q