3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = new stdClass(); $client->Get = function($path) use($client) { echo $client->GetAccessToken(); }; $client->GetAccessToken = function() use($client) { return 'bar'; }; $client->Get();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/12kDd
function name:  (null)
number of ops:  14
compiled vars:  !0 = $client
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F12kDd%3A3%240'
          4        BIND_LEXICAL                                             ~5, !0
          5        ASSIGN_OBJ                                               !0, 'Get'
    5     6        OP_DATA                                                  ~5
    6     7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F12kDd%3A6%241'
          8        BIND_LEXICAL                                             ~7, !0
          9        ASSIGN_OBJ                                               !0, 'GetAccessToken'
    8    10        OP_DATA                                                  ~7
    9    11        INIT_METHOD_CALL                                         !0, 'Get'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F12kDd%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/12kDd
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $path, !1 = $client
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    4     2        INIT_METHOD_CALL                                         !1, 'GetAccessToken'
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
    5     5      > RETURN                                                   null

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

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

End of function %00%7Bclosure%7D%2Fin%2F12kDd%3A6%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.42 ms | 1395 KiB | 13 Q