3v4l.org

run code in 500+ PHP versions simultaneously
<?php try { exit(new stdClass); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } echo "Passed the exit()";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 61) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vR3up
function name:  (null)
number of ops:  16
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E > > INIT_FCALL                                                   'exit'
          1*       NEW                                                  $1      'stdClass'
          2*       DO_FCALL                                          0          
          3*       SEND_VAR                                                     $1
          4*       DO_ICALL                                                     
          5*       JMP                                                          ->14
    6     6  E > > CATCH                                           last         'Throwable'
    7     7    >   FETCH_CLASS_NAME                                     ~4      !0
          8        ECHO                                                         ~4
          9        ECHO                                                         '%3A+'
         10        INIT_METHOD_CALL                                             !0, 'getMessage'
         11        DO_FCALL                                          0  $5      
         12        ECHO                                                         $5
         13        ECHO                                                         '%0A'
   10    14        ECHO                                                         'Passed+the+exit%28%29'
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.59 ms | 1592 KiB | 14 Q