3v4l.org

run code in 300+ PHP versions simultaneously
<?php class someObj { private $_app; public function __construct($app) { $this->_app = $app; } public function someFunction(){ for($i = 0; $i < 1000; $i++) { } } } $newObj = new someObj('nothing');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M95k7
function name:  (null)
number of ops:  5
compiled vars:  !0 = $newObj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'someObj'
          1        SEND_VAL_EX                                              'nothing'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class someObj:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M95k7
function name:  __construct
number of ops:  4
compiled vars:  !0 = $app
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               '_app'
          2        OP_DATA                                                  !0
    7     3      > RETURN                                                   null

End of function __construct

Function somefunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 2
Branch analysis from position: 5
Branch analysis from position: 2
filename:       /in/M95k7
function name:  someFunction
number of ops:  6
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->3
          2    >   PRE_INC                                                  !0
          3    >   IS_SMALLER                                               !0, 1000
          4      > JMPNZ                                                    ~3, ->2
   13     5    > > RETURN                                                   null

End of function somefunction

End of class someObj.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.2 ms | 1394 KiB | 13 Q