3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.25 ms | 1393 KiB | 13 Q