3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
24.26 ms | 415 KiB | 14 Q