3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ex = new Exception(); echo (string)$ex; echo PHP_EOL . PHP_EOL . PHP_EOL; try { throw new Exception(); } catch (Exception $ex) { echo (string)$ex; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 10
Branch analysis from position: 10
2 jumps found. (Code = 107) Position 1 = 11, Position 2 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/anLWd
function name:  (null)
number of ops:  14
compiled vars:  !0 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'Exception'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        CAST                                          6  ~4      !0
          4        ECHO                                                     ~4
    6     5        ECHO                                                     '%0A%0A%0A'
    9     6        NEW                                              $5      'Exception'
          7        DO_FCALL                                      0          
          8      > THROW                                         0          $5
          9*       JMP                                                      ->13
   10    10  E > > CATCH                                       last         'Exception'
   11    11    >   CAST                                          6  ~7      !0
         12        ECHO                                                     ~7
   12    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.09 ms | 1397 KiB | 13 Q