3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1, 5, 8]; $s = 'Hello'; $o = new stdClass(); var_dump(isset($s[$o])); var_dump(empty($s[$o])); try { var_dump(isset($a[$o])); } catch (\Throwable $e) { echo $e->getMessage(), "\n"; } try { var_dump(empty($a[$o])); } catch (\Throwable $e) { echo $e->getMessage(), "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 18
Branch analysis from position: 18
2 jumps found. (Code = 107) Position 1 = 19, Position 2 = -2
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Found catch point at position: 28
Branch analysis from position: 28
2 jumps found. (Code = 107) Position 1 = 29, Position 2 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bu3dI
function name:  (null)
number of ops:  34
compiled vars:  !0 = $a, !1 = $s, !2 = $o, !3 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'Hello'
    5     2        NEW                                              $6      'stdClass'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !2, $6
    7     5        INIT_FCALL                                               'var_dump'
          6        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !1, !2
          7        SEND_VAL                                                 ~9
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'var_dump'
         10        ISSET_ISEMPTY_DIM_OBJ                         1  ~11     !1, !2
         11        SEND_VAL                                                 ~11
         12        DO_ICALL                                                 
   10    13        INIT_FCALL                                               'var_dump'
         14        ISSET_ISEMPTY_DIM_OBJ                         0  ~13     !0, !2
         15        SEND_VAL                                                 ~13
         16        DO_ICALL                                                 
         17      > JMP                                                      ->23
   11    18  E > > CATCH                                       last         'Throwable'
   12    19    >   INIT_METHOD_CALL                                         !3, 'getMessage'
         20        DO_FCALL                                      0  $15     
         21        ECHO                                                     $15
         22        ECHO                                                     '%0A'
   15    23    >   INIT_FCALL                                               'var_dump'
         24        ISSET_ISEMPTY_DIM_OBJ                         1  ~16     !0, !2
         25        SEND_VAL                                                 ~16
         26        DO_ICALL                                                 
         27      > JMP                                                      ->33
   16    28  E > > CATCH                                       last         'Throwable'
   17    29    >   INIT_METHOD_CALL                                         !3, 'getMessage'
         30        DO_FCALL                                      0  $18     
         31        ECHO                                                     $18
         32        ECHO                                                     '%0A'
   18    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.57 ms | 944 KiB | 16 Q