3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; if($x == 1){$y = 1;} if($x == 2){$z = 1;} if($x == 3){$y=1;$z = 1;} if(isset($y)){ function a(){echo 'a-123';} }else{echo '不能执行喵~';} if(isset($z)){ function b($a0){echo $a0.'b-2333';} }else{echo '不能执行喵~';} a(); echo '<hr>'; b(rr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
Branch analysis from position: 20
Branch analysis from position: 11
Branch analysis from position: 7
Branch analysis from position: 4
filename:       /in/FHmk2
function name:  (null)
number of ops:  29
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        IS_EQUAL                                                 !0, 1
          2      > JMPZ                                                     ~4, ->4
          3    >   ASSIGN                                                   !1, 1
    4     4    >   IS_EQUAL                                                 !0, 2
          5      > JMPZ                                                     ~6, ->7
          6    >   ASSIGN                                                   !2, 1
    5     7    >   IS_EQUAL                                                 !0, 3
          8      > JMPZ                                                     ~8, ->11
          9    >   ASSIGN                                                   !1, 1
         10        ASSIGN                                                   !2, 1
    7    11    >   ISSET_ISEMPTY_CV                                         !1
         12      > JMPZ                                                     ~11, ->15
    8    13    >   DECLARE_FUNCTION                                         'a'
         14      > JMP                                                      ->16
    9    15    >   ECHO                                                     '%E4%B8%8D%E8%83%BD%E6%89%A7%E8%A1%8C%E5%96%B5%7E'
   10    16    >   ISSET_ISEMPTY_CV                                         !2
         17      > JMPZ                                                     ~12, ->20
   11    18    >   DECLARE_FUNCTION                                         'b'
         19      > JMP                                                      ->21
   12    20    >   ECHO                                                     '%E4%B8%8D%E8%83%BD%E6%89%A7%E8%A1%8C%E5%96%B5%7E'
   14    21    >   INIT_FCALL_BY_NAME                                       'a'
         22        DO_FCALL                                      0          
   15    23        ECHO                                                     '%3Chr%3E'
   16    24        INIT_FCALL_BY_NAME                                       'b'
         25        FETCH_CONSTANT                                   ~14     'rr'
         26        SEND_VAL_EX                                              ~14
         27        DO_FCALL                                      0          
         28      > RETURN                                                   1

Function %00a%2Fin%2FFHmk2%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FHmk2
function name:  a
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'a-123'
          1      > RETURN                                                   null

End of function %00a%2Fin%2FFHmk2%3A8%240

Function %00b%2Fin%2FFHmk2%3A11%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FHmk2
function name:  b
number of ops:  4
compiled vars:  !0 = $a0
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        CONCAT                                           ~1      !0, 'b-2333'
          2        ECHO                                                     ~1
          3      > RETURN                                                   null

End of function %00b%2Fin%2FFHmk2%3A11%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.54 ms | 1399 KiB | 13 Q