3v4l.org

run code in 300+ PHP versions simultaneously
<?php class someObj { var $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/0ef2d
function name:  (null)
number of ops:  5
compiled vars:  !0 = $newObj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     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/0ef2d
function name:  __construct
number of ops:  4
compiled vars:  !0 = $app
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN_OBJ                                               'app'
          2        OP_DATA                                                  !0
    6     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/0ef2d
function name:  someFunction
number of ops:  6
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->3
          2    >   PRE_INC                                                  !0
          3    >   IS_SMALLER                                               !0, 1000
          4      > JMPNZ                                                    ~3, ->2
   12     5    > > RETURN                                                   null

End of function somefunction

End of class someObj.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.46 ms | 1385 KiB | 13 Q