3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SuperPuper { protected $hhh; public function __construct($hhh) { $this->hhh = (int)$hhh; } public function getHhh() { return $this->hhh; } } function f($q) { for ($i = 0; $i < $q; $i++) { $obj = new SuperPuper($i*10000); print $obj->getHhh(); } } f(1); f(123); f(194); f(224); f(346); f(500); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cl70k
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'f'
          1        SEND_VAL                                                 1
          2        DO_FCALL                                      0          
   21     3        INIT_FCALL                                               'f'
          4        SEND_VAL                                                 123
          5        DO_FCALL                                      0          
   22     6        INIT_FCALL                                               'f'
          7        SEND_VAL                                                 194
          8        DO_FCALL                                      0          
   23     9        INIT_FCALL                                               'f'
         10        SEND_VAL                                                 224
         11        DO_FCALL                                      0          
   24    12        INIT_FCALL                                               'f'
         13        SEND_VAL                                                 346
         14        DO_FCALL                                      0          
   25    15        INIT_FCALL                                               'f'
         16        SEND_VAL                                                 500
         17        DO_FCALL                                      0          
   26    18      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/Cl70k
function name:  f
number of ops:  15
compiled vars:  !0 = $q, !1 = $i, !2 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->12
   15     3    >   NEW                                              $4      'SuperPuper'
          4        MUL                                              ~5      !1, 10000
          5        SEND_VAL_EX                                              ~5
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !2, $4
   16     8        INIT_METHOD_CALL                                         !2, 'getHhh'
          9        DO_FCALL                                      0  $8      
         10        ECHO                                                     $8
   14    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, !0
         13      > JMPNZ                                                    ~10, ->3
   18    14    > > RETURN                                                   null

End of function f

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

End of function __construct

Function gethhh:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cl70k
function name:  getHhh
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_OBJ_R                                      ~0      'hhh'
          1      > RETURN                                                   ~0
   11     2*     > RETURN                                                   null

End of function gethhh

End of class SuperPuper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.72 ms | 1403 KiB | 19 Q