3v4l.org

run code in 500+ PHP versions simultaneously
<?php $object = new stdClass(); $function = (function(){ print_r($this); })->bindTo($object); $function();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lPHbE
function name:  (null)
number of ops:  11
compiled vars:  !0 = $object, !1 = $function
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'stdClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    4     3        DECLARE_LAMBDA_FUNCTION                              ~5      [0]
          4        INIT_METHOD_CALL                                             ~5, 'bindTo'
          5        SEND_VAR_EX                                                  !0
          6        DO_FCALL                                          0  $6      
          7        ASSIGN                                                       !1, $6
    5     8        INIT_DYNAMIC_CALL                                            !1
          9        DO_FCALL                                          0          
         10      > 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/lPHbE
function name:  {closure:/in/lPHbE:4}
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'print_r'
          1        FETCH_THIS                                           ~0      
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
          4      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.56 ms | 2796 KiB | 14 Q