3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2FXPthD%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XPthD
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FXPthD%3A4%240

Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.16 ms | 1385 KiB | 13 Q