3v4l.org

run code in 300+ PHP versions simultaneously
<?php try{ throw new Exception(print_r(array(1), true)); } catch (Exception $e) { print_r($e->getMessage()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gupvK
function name:  (null)
number of ops:  16
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'Exception'
          1        INIT_FCALL                                               'print_r'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $2      
          5        SEND_VAR_NO_REF_EX                                       $2
          6        DO_FCALL                                      0          
          7      > THROW                                         0          $1
          8*       JMP                                                      ->15
    4     9  E > > CATCH                                       last         'Exception'
    5    10    >   INIT_FCALL                                               'print_r'
         11        INIT_METHOD_CALL                                         !0, 'getMessage'
         12        DO_FCALL                                      0  $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
    6    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.24 ms | 1399 KiB | 15 Q