3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); // Simple array: $array = array(1, 2); $count = count($array); for ($i = 0; $i < $count; $i++) { echo "\nChecking $i: \n"; echo "Bad: " . $array['$i'] . "\n"; echo "Good: " . $array[$i] . "\n"; echo "Bad: {$array['$i']}\n"; echo "Good: {$array[$i]}\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 8
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 8
Branch analysis from position: 33
Branch analysis from position: 8
filename:       /in/DHI2Q
function name:  (null)
number of ops:  34
compiled vars:  !0 = $array, !1 = $count, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, <array>
    5     4        COUNT                                            ~5      !0
          5        ASSIGN                                                   !1, ~5
    6     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->31
    7     8    >   ROPE_INIT                                     3  ~9      '%0AChecking+'
          9        ROPE_ADD                                      1  ~9      ~9, !2
         10        ROPE_END                                      2  ~8      ~9, '%3A+%0A'
         11        ECHO                                                     ~8
    8    12        FETCH_DIM_R                                      ~11     !0, '%24i'
         13        CONCAT                                           ~12     'Bad%3A+', ~11
         14        CONCAT                                           ~13     ~12, '%0A'
         15        ECHO                                                     ~13
    9    16        FETCH_DIM_R                                      ~14     !0, !2
         17        CONCAT                                           ~15     'Good%3A+', ~14
         18        CONCAT                                           ~16     ~15, '%0A'
         19        ECHO                                                     ~16
   10    20        ROPE_INIT                                     3  ~19     'Bad%3A+'
         21        FETCH_DIM_R                                      ~17     !0, '%24i'
         22        ROPE_ADD                                      1  ~19     ~19, ~17
         23        ROPE_END                                      2  ~18     ~19, '%0A'
         24        ECHO                                                     ~18
   11    25        ROPE_INIT                                     3  ~23     'Good%3A+'
         26        FETCH_DIM_R                                      ~21     !0, !2
         27        ROPE_ADD                                      1  ~23     ~23, ~21
         28        ROPE_END                                      2  ~22     ~23, '%0A'
         29        ECHO                                                     ~22
    6    30        PRE_INC                                                  !2
         31    >   IS_SMALLER                                               !2, !1
         32      > JMPNZ                                                    ~26, ->8
   12    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.64 ms | 1396 KiB | 15 Q