3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class className { public $id = array(); // this a array (1,2,3,4,5...) public $userId=array("1","2","3","4","5"); public function show() { echo "<table><tr>"; foreach($this->userId as $this->id) { echo "<td>"; echo $this->id."</td>"; } echo "</tr></table>"; } } $object=new className(); $object->show(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LrRH8
function name:  (null)
number of ops:  6
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'className'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   23     3        INIT_METHOD_CALL                                         !0, 'show'
          4        DO_FCALL                                      0          
   26     5      > RETURN                                                   1

Class className:
Function show:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/LrRH8
function name:  show
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     '%3Ctable%3E%3Ctr%3E'
   12     1        FETCH_OBJ_R                                      ~0      'userId'
          2      > FE_RESET_R                                       $1      ~0, ->11
          3    > > FE_FETCH_R                                               $1, $2, ->11
          4    >   ASSIGN_OBJ                                               'id'
          5        OP_DATA                                                  $2
   14     6        ECHO                                                     '%3Ctd%3E'
   15     7        FETCH_OBJ_R                                      ~4      'id'
          8        CONCAT                                           ~5      ~4, '%3C%2Ftd%3E'
          9        ECHO                                                     ~5
   12    10      > JMP                                                      ->3
         11    >   FE_FREE                                                  $1
   18    12        ECHO                                                     '%3C%2Ftr%3E%3C%2Ftable%3E'
   19    13      > RETURN                                                   null

End of function show

End of class className.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.05 ms | 1385 KiB | 13 Q