3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 10; echo "$a < ++$a vv"; $b = 11; if (10 < 11 || 11 < 12) print "hello"; else print "hi"; $a = 10; $b = 11; if ($a == ++$a && $b == ++$b) print "hello$a and $b"; else print "hi"; if ((print "hi")- 1) print "hello"; $i = 0; do { print "hi"; $i++; } while ($i != 3);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 26
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 31
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
Branch analysis from position: 30
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
Branch analysis from position: 30
Branch analysis from position: 19
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
Branch analysis from position: 19
filename:       /in/CcQLv
function name:  (null)
number of ops:  36
compiled vars:  !0 = $a, !1 = $b, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    4     1        ROPE_INIT                                     4  ~5      !0
          2        ROPE_ADD                                      1  ~5      ~5, '+%3C+%2B%2B'
          3        ROPE_ADD                                      2  ~5      ~5, !0
          4        ROPE_END                                      3  ~4      ~5, '+vv'
          5        ECHO                                                     ~4
    5     6        ASSIGN                                                   !1, 11
    6     7      > JMPZ                                                     <true>, ->10
    7     8    >   ECHO                                                     'hello'
          9      > JMP                                                      ->11
    9    10    >   ECHO                                                     'hi'
   11    11    >   ASSIGN                                                   !0, 10
   12    12        ASSIGN                                                   !1, 11
   13    13        PRE_INC                                          ~10     !0
         14        IS_EQUAL                                         ~11     !0, ~10
         15      > JMPZ_EX                                          ~11     ~11, ->19
         16    >   PRE_INC                                          ~12     !1
         17        IS_EQUAL                                         ~13     !1, ~12
         18        BOOL                                             ~11     ~13
         19    > > JMPZ                                                     ~11, ->26
   14    20    >   ROPE_INIT                                     4  ~15     'hello'
         21        ROPE_ADD                                      1  ~15     ~15, !0
         22        ROPE_ADD                                      2  ~15     ~15, '+and+'
         23        ROPE_END                                      3  ~14     ~15, !1
         24        ECHO                                                     ~14
         25      > JMP                                                      ->27
   16    26    >   ECHO                                                     'hi'
   19    27    >   ECHO                                                     'hi'
         28      > JMPZ                                                     0, ->30
   20    29    >   ECHO                                                     'hello'
   24    30    >   ASSIGN                                                   !2, 0
   27    31    >   ECHO                                                     'hi'
   28    32        PRE_INC                                                  !2
   30    33        IS_NOT_EQUAL                                             !2, 3
         34      > JMPNZ                                                    ~19, ->31
         35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.81 ms | 1399 KiB | 13 Q