3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array('hello' => 'world'); try { echo $testArray['helllo']; } catch (\Exception $e) { var_dump($e->getMessage()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D4GH4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $testArray, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    7     1        FETCH_DIM_R                                      ~3      !0, 'helllo'
          2        ECHO                                                     ~3
          3      > JMP                                                      ->10
    9     4  E > > CATCH                                       last         'Exception'
   10     5    >   INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !1, 'getMessage'
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
   13    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.27 ms | 1385 KiB | 15 Q