3v4l.org

run code in 500+ PHP versions simultaneously
<?php const up = new Exception(); try { throw up; } catch(Exception) { echo 'PHP 8.1 is great'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) 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/uhSmg
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                                'up', <const ast>
    6     1        FETCH_CONSTANT                                       ~0      'up'
          2      > THROW                                             0          ~0
          3*       JMP                                                          ->6
    7     4  E > > CATCH                                           last         'Exception'
    8     5    >   ECHO                                                         'PHP+8.1+is+great'
    9     6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
181.07 ms | 1665 KiB | 13 Q