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($andra); for($i=0;$i<$nr;$i++) echo "bad " . $andra[$i] . "\n"; echo " {$andra[$i]}\n"; var_dump($array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 9
Branch analysis from position: 16
Branch analysis from position: 9
filename:       /in/HALRC
function name:  (null)
number of ops:  25
compiled vars:  !0 = $array, !1 = $andra, !2 = $nr, !3 = $i
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                                            ~7      !1
          6        ASSIGN                                                   !2, ~7
   16     7        ASSIGN                                                   !3, 0
          8      > JMP                                                      ->14
   17     9    >   FETCH_DIM_R                                      ~10     !1, !3
         10        CONCAT                                           ~11     'bad++', ~10
         11        CONCAT                                           ~12     ~11, '%0A'
         12        ECHO                                                     ~12
   16    13        PRE_INC                                                  !3
         14    >   IS_SMALLER                                               !3, !2
         15      > JMPNZ                                                    ~14, ->9
   18    16    >   ROPE_INIT                                     3  ~17     '+'
         17        FETCH_DIM_R                                      ~15     !1, !3
         18        ROPE_ADD                                      1  ~17     ~17, ~15
         19        ROPE_END                                      2  ~16     ~17, '%0A'
         20        ECHO                                                     ~16
   20    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   22    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.28 ms | 1395 KiB | 15 Q