3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "mama"; $array = array ( 1 => "a", 2 => "b", 3=> "c", ); $andra = array( 1=>12, 3=>14); $andra[]=56; $nr=count($array); for($i=1;$i<$nr;$i++){ echo "eu si tu : {$array[$i]}\n"; } var_dump($array); class eu { function do_eu (){ echo " eu" . $array[1] . "\n"; } } $nou = new eu; $nou ->do_eu(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
Branch analysis from position: 9
filename:       /in/l2lYp
function name:  (null)
number of ops:  26
compiled vars:  !0 = $array, !1 = $andra, !2 = $nr, !3 = $i, !4 = $nou
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'mama'
    4     1        ASSIGN                                                   !0, <array>
   11     2        ASSIGN                                                   !1, <array>
   13     3        ASSIGN_DIM                                               !1
          4        OP_DATA                                                  56
   15     5        COUNT                                            ~8      !0
          6        ASSIGN                                                   !2, ~8
   16     7        ASSIGN                                                   !3, 1
          8      > JMP                                                      ->15
   18     9    >   ROPE_INIT                                     3  ~13     'eu+si+tu+%3A+'
         10        FETCH_DIM_R                                      ~11     !0, !3
         11        ROPE_ADD                                      1  ~13     ~13, ~11
         12        ROPE_END                                      2  ~12     ~13, '%0A'
         13        ECHO                                                     ~12
   16    14        PRE_INC                                                  !3
         15    >   IS_SMALLER                                               !3, !2
         16      > JMPNZ                                                    ~16, ->9
   21    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
   29    20        NEW                                              $18     'eu'
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !4, $18
   30    23        INIT_METHOD_CALL                                         !4, 'do_eu'
         24        DO_FCALL                                      0          
   33    25      > RETURN                                                   1

Class eu:
Function do_eu:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l2lYp
function name:  do_eu
number of ops:  5
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   FETCH_DIM_R                                      ~1      !0, 1
          1        CONCAT                                           ~2      '+eu', ~1
          2        CONCAT                                           ~3      ~2, '%0A'
          3        ECHO                                                     ~3
   27     4      > RETURN                                                   null

End of function do_eu

End of class eu.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156 ms | 1396 KiB | 15 Q