3v4l.org

run code in 300+ 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 = 79) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vR3up
function name:  (null)
number of ops:  14
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2      > EXIT                                                     $1
          3*       JMP                                                      ->12
    6     4  E > > CATCH                                       last         'Throwable'
    7     5    >   FETCH_CLASS_NAME                                 ~3      !0
          6        ECHO                                                     ~3
          7        ECHO                                                     '%3A+'
          8        INIT_METHOD_CALL                                         !0, 'getMessage'
          9        DO_FCALL                                      0  $4      
         10        ECHO                                                     $4
         11        ECHO                                                     '%0A'
   10    12        ECHO                                                     'Passed+the+exit%28%29'
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.94 ms | 993 KiB | 13 Q