3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.79 ms | 1396 KiB | 19 Q