3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.6 ms | 2594 KiB | 13 Q