3v4l.org

run code in 500+ PHP versions simultaneously
<?php $x = "not an object"; try { $x->foo(); } catch (\Throwable $t) { echo "caught"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
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/Be26l
function name:  (null)
number of ops:  7
compiled vars:  !0 = $x, !1 = $t
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'not+an+object'
    6     1        INIT_METHOD_CALL                                             !0, 'foo'
          2        DO_FCALL                                          0          
          3      > JMP                                                          ->6
    7     4  E > > CATCH                                           last         'Throwable'
    8     5    >   ECHO                                                         'caught'
    9     6    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.33 ms | 3350 KiB | 13 Q