3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { eval('dd'); } catch (Throwable $e) { echo 'Oops a "'.(get_class($e)).'" got thrown'; }
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: 2
Branch analysis from position: 2
2 jumps found. (Code = 107) Position 1 = 3, Position 2 = -2
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QpqRM
function name:  (null)
number of ops:  8
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          'dd', EVAL
          1      > JMP                                                      ->7
    4     2  E > > CATCH                                       last         'Throwable'
    5     3    >   GET_CLASS                                        ~2      !0
          4        CONCAT                                           ~3      'Oops+a+%22', ~2
          5        CONCAT                                           ~4      ~3, '%22+got+thrown'
          6        ECHO                                                     ~4
    6     7    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.98 ms | 993 KiB | 13 Q