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 eu eu \n"; } } $nou = new eu; $nou ->do_eu(); $x = (object) array('a'=>'A', 'b'=>'B', 'C'); echo '<pre>'.print_r($x, true).'</pre>'; ?>
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/mMTJ4
function name:  (null)
number of ops:  35
compiled vars:  !0 = $array, !1 = $andra, !2 = $nr, !3 = $i, !4 = $nou, !5 = $x
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                                            ~9      !0
          6        ASSIGN                                                   !2, ~9
   16     7        ASSIGN                                                   !3, 1
          8      > JMP                                                      ->15
   18     9    >   ROPE_INIT                                     3  ~14     'eu+si+tu+%3A+'
         10        FETCH_DIM_R                                      ~12     !0, !3
         11        ROPE_ADD                                      1  ~14     ~14, ~12
         12        ROPE_END                                      2  ~13     ~14, '%0A'
         13        ECHO                                                     ~13
   16    14        PRE_INC                                                  !3
         15    >   IS_SMALLER                                               !3, !2
         16      > JMPNZ                                                    ~17, ->9
   21    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
   29    20        NEW                                              $19     'eu'
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !4, $19
   30    23        INIT_METHOD_CALL                                         !4, 'do_eu'
         24        DO_FCALL                                      0          
   35    25        CAST                                          8  ~23     <array>
         26        ASSIGN                                                   !5, ~23
   36    27        INIT_FCALL                                               'print_r'
         28        SEND_VAR                                                 !5
         29        SEND_VAL                                                 <true>
         30        DO_ICALL                                         $25     
         31        CONCAT                                           ~26     '%3Cpre%3E', $25
         32        CONCAT                                           ~27     ~26, '%3C%2Fpre%3E'
         33        ECHO                                                     ~27
   38    34      > 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/mMTJ4
function name:  do_eu
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   ECHO                                                     '+eu+eu+eu+%0A'
   27     1      > RETURN                                                   null

End of function do_eu

End of class eu.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.96 ms | 1400 KiB | 17 Q