3v4l.org

run code in 500+ PHP versions simultaneously
<?php try { eval('<?php not valid syntax'); } catch (Throwable $e) { echo 'Caught: ', $e::class, $e->getMessage(), "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
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/Ik06I
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INCLUDE_OR_EVAL                                              '%3C%3Fphp+not+valid+syntax', EVAL
          1      > JMP                                                          ->10
    5     2  E > > CATCH                                           last         'Throwable'
    6     3    >   ECHO                                                         'Caught%3A+'
          4        FETCH_CLASS_NAME                                     ~2      !0
          5        ECHO                                                         ~2
          6        INIT_METHOD_CALL                                             !0, 'getMessage'
          7        DO_FCALL                                          0  $3      
          8        ECHO                                                         $3
          9        ECHO                                                         '%0A'
    7    10    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
126.73 ms | 473 KiB | 7 Q