3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.08 ms | 996 KiB | 14 Q