3v4l.org

run code in 300+ PHP versions simultaneously
<?php function issetOr($arr, $key) { if (isset($arr[$key])) { return $arr[$key]; } else { return "Nothing here!"; } } $array1[] = "Hello!"; echo issetOr($array1, 1)."\n"; echo issetOr($array1, 0)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KJNgR
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  'Hello%21'
   12     2        INIT_FCALL                                               'issetor'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_FCALL                                      0  $2      
          6        CONCAT                                           ~3      $2, '%0A'
          7        ECHO                                                     ~3
   13     8        INIT_FCALL                                               'issetor'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 0
         11        DO_FCALL                                      0  $4      
         12        CONCAT                                           ~5      $4, '%0A'
         13        ECHO                                                     ~5
         14      > RETURN                                                   1

Function issetor:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KJNgR
function name:  issetOr
number of ops:  9
compiled vars:  !0 = $arr, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ISSET_ISEMPTY_DIM_OBJ                         0          !0, !1
          3      > JMPZ                                                     ~2, ->7
    6     4    >   FETCH_DIM_R                                      ~3      !0, !1
          5      > RETURN                                                   ~3
    5     6*       JMP                                                      ->8
    8     7    > > RETURN                                                   'Nothing+here%21'
   10     8*     > RETURN                                                   null

End of function issetor

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.42 ms | 1011 KiB | 15 Q