3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $siteId = 3; if(1 !== 2) { throw new Exception('1 does not equal 2!'); } } catch(Exception $e) { $moreInfo = ''; if(isset($siteId)) { $moreInfo .= ' SiteIdĀ»' . $siteId; } echo 'Error' . $moreInfo . ':' . $e->getMessage(); } echo "\n" . $siteId;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) 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
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/PfO9m
function name:  (null)
number of ops:  22
compiled vars:  !0 = $siteId, !1 = $e, !2 = $moreInfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 3
    4     1      > JMPZ                                                     <true>, ->6
    5     2    >   NEW                                              $4      'Exception'
          3        SEND_VAL_EX                                              '1+does+not+equal+2%21'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $4
          6    > > JMP                                                      ->19
    7     7  E > > CATCH                                       last         'Exception'
    8     8    >   ASSIGN                                                   !2, ''
    9     9        ISSET_ISEMPTY_CV                                         !0
         10      > JMPZ                                                     ~7, ->13
   10    11    >   CONCAT                                           ~8      '+SiteId%C2%BB', !0
         12        ASSIGN_OP                                     8          !2, ~8
   12    13    >   CONCAT                                           ~10     'Error', !2
         14        CONCAT                                           ~11     ~10, '%3A'
         15        INIT_METHOD_CALL                                         !1, 'getMessage'
         16        DO_FCALL                                      0  $12     
         17        CONCAT                                           ~13     ~11, $12
         18        ECHO                                                     ~13
   14    19    >   CONCAT                                           ~14     '%0A', !0
         20        ECHO                                                     ~14
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.42 ms | 1394 KiB | 13 Q