3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "a | b\n"; for($i = 0; $i < 4; $i++){ list($a, $b) = str_split(str_pad(decbin($i), 2, 0, STR_PAD_LEFT)); echo "$a | $b | " . $a|$b; echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 3
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 3
Branch analysis from position: 31
Branch analysis from position: 3
filename:       /in/cHjXX
function name:  (null)
number of ops:  32
compiled vars:  !0 = $i, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'a+%7C+b%0A'
    4     1        ASSIGN                                                   !0, 0
          2      > JMP                                                      ->29
    5     3    >   INIT_FCALL                                               'str_split'
          4        INIT_FCALL                                               'str_pad'
          5        INIT_FCALL                                               'decbin'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        SEND_VAL                                                 2
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 0
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        FETCH_LIST_R                                     $7      $6, 0
         16        ASSIGN                                                   !1, $7
         17        FETCH_LIST_R                                     $9      $6, 1
         18        ASSIGN                                                   !2, $9
         19        FREE                                                     $6
    6    20        ROPE_INIT                                     4  ~12     !1
         21        ROPE_ADD                                      1  ~12     ~12, '+%7C+'
         22        ROPE_ADD                                      2  ~12     ~12, !2
         23        ROPE_END                                      3  ~11     ~12, '+%7C+'
         24        CONCAT                                           ~14     ~11, !1
         25        BW_OR                                            ~15     !2, ~14
         26        ECHO                                                     ~15
    7    27        ECHO                                                     '%0A'
    4    28        PRE_INC                                                  !0
         29    >   IS_SMALLER                                               !0, 4
         30      > JMPNZ                                                    ~17, ->3
    8    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.33 ms | 1396 KiB | 19 Q