3v4l.org

run code in 300+ PHP versions simultaneously
<?php function objectunset(stdClass $object, $Callback) { $Callback(); } $object = new stdClass(); $Callback = function () use (&$object) {unset($object);}; objectunset($object, $Callback); var_dump($object);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bUu2
function name:  (null)
number of ops:  14
compiled vars:  !0 = $object, !1 = $Callback
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    8     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F3bUu2%3A8%240'
          4        BIND_LEXICAL                                             ~5, !0
          5        ASSIGN                                                   !1, ~5
   10     6        INIT_FCALL                                               'objectunset'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_FCALL                                      0          
   11    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function objectunset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bUu2
function name:  objectunset
number of ops:  5
compiled vars:  !0 = $object, !1 = $Callback
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_DYNAMIC_CALL                                        !1
          3        DO_FCALL                                      0          
    5     4      > RETURN                                                   null

End of function objectunset

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

End of function %00%7Bclosure%7D%2Fin%2F3bUu2%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.04 ms | 1390 KiB | 16 Q