3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = static function() { var_dump($this); }; //$b(); $d = $b->bindTo(new StdClass()); ${d}();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4gBqE
function name:  (null)
number of ops:  13
compiled vars:  !0 = $b, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F4gBqE%3A3%240'
          1        ASSIGN                                                   !0, ~2
    6     2        INIT_METHOD_CALL                                         !0, 'bindTo'
          3        NEW                                              $4      'StdClass'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $4
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !1, $6
    7     8        FETCH_CONSTANT                                   ~8      'd'
          9        FETCH_R                      local               ~9      ~8
         10        INIT_DYNAMIC_CALL                                        ~9
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2F4gBqE%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.25 ms | 1395 KiB | 15 Q