3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyFancyMessage {} function testThis() { throw new MyFancyMessage; } try { testThis(); } catch (MyFancyMessage $m) { echo 'got a fancy message'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 3
Branch analysis from position: 3
2 jumps found. (Code = 107) Position 1 = 4, Position 2 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/auh3Q
function name:  (null)
number of ops:  6
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'testthis'
          1        DO_FCALL                                      0          
          2      > JMP                                                      ->5
   11     3  E > > CATCH                                       last         'MyFancyMessage'
   12     4    >   ECHO                                                     'got+a+fancy+message'
   13     5    > > RETURN                                                   1

Function testthis:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/auh3Q
function name:  testThis
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $0      'MyFancyMessage'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $0
    7     3*     > RETURN                                                   null

End of function testthis

Class MyFancyMessage: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.65 ms | 1397 KiB | 14 Q