3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ai1ec_Core_Callback { protected $_registry = null; protected $_registry_name = null; protected $_method = null; public function __construct( Ai1ec_Objects_Registry $registry, $path, $method ) { $this->_registry = $registry; $this->_registry_name = $path; $this->_method = $method; } public function execute( array $argv ) { return $this->_registry->get( $this->_registry_name )->{$this->_method}( $argv ); } } for($i = 0; $i < 200; $i++){ $obj = new Ai1ec_Core_Callback("bla bla bla", "method name"); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
Branch analysis from position: 2
filename:       /in/sipGK
function name:  (null)
number of ops:  11
compiled vars:  !0 = $i, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->8
   20     2    >   NEW                                              $3      'Ai1ec_Core_Callback'
          3        SEND_VAL_EX                                              'bla+bla+bla'
          4        SEND_VAL_EX                                              'method+name'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $3
   19     7        PRE_INC                                                  !0
          8    >   IS_SMALLER                                               !0, 200
          9      > JMPNZ                                                    ~7, ->2
   21    10    > > RETURN                                                   1

Class Ai1ec_Core_Callback:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sipGK
function name:  __construct
number of ops:  10
compiled vars:  !0 = $registry, !1 = $path, !2 = $method
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    9     3        ASSIGN_OBJ                                               '_registry'
          4        OP_DATA                                                  !0
   10     5        ASSIGN_OBJ                                               '_registry_name'
          6        OP_DATA                                                  !1
   11     7        ASSIGN_OBJ                                               '_method'
          8        OP_DATA                                                  !2
   12     9      > RETURN                                                   null

End of function __construct

Function execute:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sipGK
function name:  execute
number of ops:  13
compiled vars:  !0 = $argv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        FETCH_OBJ_R                                      ~1      '_registry'
          2        INIT_METHOD_CALL                                         ~1, 'get'
          3        CHECK_FUNC_ARG                                           
          4        FETCH_OBJ_FUNC_ARG                               $2      '_registry_name'
          5        SEND_FUNC_ARG                                            $2
          6        DO_FCALL                                      0  $3      
          7        FETCH_OBJ_R                                      ~4      '_method'
          8        INIT_METHOD_CALL                                         $3, ~4
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $5      
         11      > RETURN                                                   $5
   16    12*     > RETURN                                                   null

End of function execute

End of class Ai1ec_Core_Callback.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.16 ms | 1399 KiB | 13 Q