3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a {} $x = (new ReflectionFunction("substr"))->getClosure(); $x->call(new a); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NiL0v
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ReflectionFunction'
          1        SEND_VAL_EX                                              'substr'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $1, 'getClosure'
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !0, $3
    4     6        INIT_METHOD_CALL                                         !0, 'call'
          7        NEW                                              $5      'a'
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $5
         10        DO_FCALL                                      0          
    5    11      > RETURN                                                   1

Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.46 ms | 1384 KiB | 13 Q