3v4l.org

run code in 500+ PHP versions simultaneously
<?php $secret = false; try { echo $secret ?? throw new Exception('Haaaa'); } catch (\Exception $e) { echo $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/jgW4j
function name:  (null)
number of ops:  14
compiled vars:  !0 = $secret, !1 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <false>
    6     1        COALESCE                                             ~3      !0
          2        NEW                                                  $4      'Exception'
          3        SEND_VAL_EX                                                  'Haaaa'
          4        DO_FCALL                                          0          
          5      > THROW                                             1          $4
          6*       QM_ASSIGN                                            ~3      <true>
          7*       ECHO                                                         ~3
          8*       JMP                                                          ->13
    7     9  E > > CATCH                                           last         'Exception'
    8    10    >   INIT_METHOD_CALL                                             !1, 'getMessage'
         11        DO_FCALL                                          0  $6      
         12        ECHO                                                         $6
    9    13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.76 ms | 482 KiB | 9 Q