3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function test() { $test2 = function() use(&$test2) { $test2(); $this->test(); }; $test2(); return TRUE; } } $t = new test(); $t->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0kYB3
function name:  (null)
number of ops:  6
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F0kYB3%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0kYB3
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $test2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_STATIC                                              !0
    6     1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0          
    7     3        FETCH_THIS                                       $2      
          4        INIT_METHOD_CALL                                         $2, 'test'
          5        DO_FCALL                                      0          
    8     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F0kYB3%3A5%240

Class test:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0kYB3
function name:  test
number of ops:  7
compiled vars:  !0 = $test2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0kYB3%3A5%240'
          1        BIND_LEXICAL                                             ~1, !0
          2        ASSIGN                                                   !0, ~1
    9     3        INIT_DYNAMIC_CALL                                        !0
          4        DO_FCALL                                      0          
   11     5      > RETURN                                                   <true>
   12     6*     > RETURN                                                   null

End of function test

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.02 ms | 1394 KiB | 13 Q