3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { const foo = BAZ; } try { class_exists(foo); } catch (Error $e) { print 'hello'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gVsm4
function name:  (null)
number of ops:  8
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'class_exists'
          1        FETCH_CONSTANT                                   ~1      'foo'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
          4      > JMP                                                      ->7
   11     5  E > > CATCH                                       last         'Error'
   12     6    >   ECHO                                                     'hello'
   13     7    > > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.4 ms | 996 KiB | 14 Q