3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.72 ms | 1393 KiB | 13 Q