3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1, 5, 8]; $s = 'Hello'; $o = new stdClass(); $spl = new SplFixedArray(5); var_dump(isset($s[$o])); var_dump(empty($s[$o])); try { $s[$o] = 'A'; } catch (\Throwable $e) { echo $e->getMessage(), "\n"; } try { var_dump($s[$o]); } catch (\Throwable $e) { echo $e->getMessage(), "\n"; } 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"; } try { $a[$o] = 'AAAAAAAAAAAAA'; } catch (\Throwable $e) { echo $e->getMessage(), "\n"; } var_dump(isset($spl[$o])); var_dump(empty($spl[$o])); try { $spl[$o] = 'AAAAAAAAAAAAA'; } catch (\Throwable $e) { echo $e->getMessage(), "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 55
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
1 jumps found. (Code = 42) Position 1 = 79
Branch analysis from position: 79
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 20
Branch analysis from position: 20
2 jumps found. (Code = 107) Position 1 = 21, Position 2 = -2
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
Found catch point at position: 30
Branch analysis from position: 30
2 jumps found. (Code = 107) Position 1 = 31, Position 2 = -2
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
Found catch point at position: 40
Branch analysis from position: 40
2 jumps found. (Code = 107) Position 1 = 41, Position 2 = -2
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 55
Branch analysis from position: 55
Found catch point at position: 50
Branch analysis from position: 50
2 jumps found. (Code = 107) Position 1 = 51, Position 2 = -2
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
Found catch point at position: 58
Branch analysis from position: 58
2 jumps found. (Code = 107) Position 1 = 59, Position 2 = -2
Branch analysis from position: 59
1 jumps found. (Code = 42) Position 1 = 79
Branch analysis from position: 79
Found catch point at position: 74
Branch analysis from position: 74
2 jumps found. (Code = 107) Position 1 = 75, Position 2 = -2
Branch analysis from position: 75
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YhEYe
function name:  (null)
number of ops:  80
compiled vars:  !0 = $a, !1 = $s, !2 = $o, !3 = $spl, !4 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'Hello'
    5     2        NEW                                              $7      'stdClass'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !2, $7
    6     5        NEW                                              $10     'SplFixedArray'
          6        SEND_VAL_EX                                              5
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !3, $10
    8     9        INIT_FCALL                                               'var_dump'
         10        ISSET_ISEMPTY_DIM_OBJ                         0  ~13     !1, !2
         11        SEND_VAL                                                 ~13
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'var_dump'
         14        ISSET_ISEMPTY_DIM_OBJ                         1  ~15     !1, !2
         15        SEND_VAL                                                 ~15
         16        DO_ICALL                                                 
   11    17        ASSIGN_DIM                                               !1, !2
         18        OP_DATA                                                  'A'
         19      > JMP                                                      ->25
   12    20  E > > CATCH                                       last         'Throwable'
   13    21    >   INIT_METHOD_CALL                                         !4, 'getMessage'
         22        DO_FCALL                                      0  $18     
         23        ECHO                                                     $18
         24        ECHO                                                     '%0A'
   16    25    >   INIT_FCALL                                               'var_dump'
         26        FETCH_DIM_R                                      ~19     !1, !2
         27        SEND_VAL                                                 ~19
         28        DO_ICALL                                                 
         29      > JMP                                                      ->35
   17    30  E > > CATCH                                       last         'Throwable'
   18    31    >   INIT_METHOD_CALL                                         !4, 'getMessage'
         32        DO_FCALL                                      0  $21     
         33        ECHO                                                     $21
         34        ECHO                                                     '%0A'
   22    35    >   INIT_FCALL                                               'var_dump'
         36        ISSET_ISEMPTY_DIM_OBJ                         0  ~22     !0, !2
         37        SEND_VAL                                                 ~22
         38        DO_ICALL                                                 
         39      > JMP                                                      ->45
   23    40  E > > CATCH                                       last         'Throwable'
   24    41    >   INIT_METHOD_CALL                                         !4, 'getMessage'
         42        DO_FCALL                                      0  $24     
         43        ECHO                                                     $24
         44        ECHO                                                     '%0A'
   27    45    >   INIT_FCALL                                               'var_dump'
         46        ISSET_ISEMPTY_DIM_OBJ                         1  ~25     !0, !2
         47        SEND_VAL                                                 ~25
         48        DO_ICALL                                                 
         49      > JMP                                                      ->55
   28    50  E > > CATCH                                       last         'Throwable'
   29    51    >   INIT_METHOD_CALL                                         !4, 'getMessage'
         52        DO_FCALL                                      0  $27     
         53        ECHO                                                     $27
         54        ECHO                                                     '%0A'
   32    55    >   ASSIGN_DIM                                               !0, !2
         56        OP_DATA                                                  'AAAAAAAAAAAAA'
         57      > JMP                                                      ->63
   33    58  E > > CATCH                                       last         'Throwable'
   34    59    >   INIT_METHOD_CALL                                         !4, 'getMessage'
         60        DO_FCALL                                      0  $29     
         61        ECHO                                                     $29
         62        ECHO                                                     '%0A'
   38    63    >   INIT_FCALL                                               'var_dump'
         64        ISSET_ISEMPTY_DIM_OBJ                         0  ~30     !3, !2
         65        SEND_VAL                                                 ~30
         66        DO_ICALL                                                 
   39    67        INIT_FCALL                                               'var_dump'
         68        ISSET_ISEMPTY_DIM_OBJ                         1  ~32     !3, !2
         69        SEND_VAL                                                 ~32
         70        DO_ICALL                                                 
   41    71        ASSIGN_DIM                                               !3, !2
         72        OP_DATA                                                  'AAAAAAAAAAAAA'
         73      > JMP                                                      ->79
   42    74  E > > CATCH                                       last         'Throwable'
   43    75    >   INIT_METHOD_CALL                                         !4, 'getMessage'
         76        DO_FCALL                                      0  $35     
         77        ECHO                                                     $35
         78        ECHO                                                     '%0A'
   44    79    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.14 ms | 1409 KiB | 15 Q