3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("a" =>"b", "c"=>"d"); if(isset($a['a'])) echo "hi"; else echo "hello"; $b = array("a","b","c"); if(in_array('a',$b)) echo "hi"; else echo "hello"; pprint(array_merge(array("1","2"), array("2","3","4")));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
filename:       /in/tOo4o
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'a'
          2      > JMPZ                                                     ~3, ->5
    6     3    >   ECHO                                                     'hi'
          4      > JMP                                                      ->6
    8     5    >   ECHO                                                     'hello'
   11     6    >   ASSIGN                                                   !1, <array>
   13     7        INIT_FCALL                                               'in_array'
          8        SEND_VAL                                                 'a'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11      > JMPZ                                                     $5, ->14
   14    12    >   ECHO                                                     'hi'
         13      > JMP                                                      ->15
   16    14    >   ECHO                                                     'hello'
   18    15    >   INIT_FCALL_BY_NAME                                       'pprint'
         16        INIT_FCALL                                               'array_merge'
         17        SEND_VAL                                                 <array>
         18        SEND_VAL                                                 <array>
         19        DO_ICALL                                         $6      
         20        SEND_VAR_NO_REF_EX                                       $6
         21        DO_FCALL                                      0          
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.35 ms | 1387 KiB | 17 Q