3v4l.org

run code in 300+ PHP versions simultaneously
<?php $closure = (new ReflectionFunction(eval('return function ($__contextVariables__){unset($__contextVariables__);return function (){};};')))->getClosure()->bindTo(new stdClass(), 'stdClass');var_dump($closure());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WeXCU
function name:  (null)
number of ops:  19
compiled vars:  !0 = $closure
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ReflectionFunction'
          1        INCLUDE_OR_EVAL                                  $2      'return+function+%28%24__contextVariables__%29%7Bunset%28%24__contextVariables__%29%3Breturn+function+%28%29%7B%7D%3B%7D%3B', EVAL
          2        SEND_VAR_NO_REF_EX                                       $2
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $1, 'getClosure'
          5        DO_FCALL                                      0  $4      
          6        INIT_METHOD_CALL                                         $4, 'bindTo'
          7        NEW                                              $5      'stdClass'
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $5
         10        SEND_VAL_EX                                              'stdClass'
         11        DO_FCALL                                      0  $7      
         12        ASSIGN                                                   !0, $7
         13        INIT_FCALL                                               'var_dump'
         14        INIT_DYNAMIC_CALL                                        !0
         15        DO_FCALL                                      0  $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.13 ms | 1395 KiB | 15 Q