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:  18
compiled vars:  !0 = $var, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        ASSIGN_REF                                               !1, !0
    7     2        NEW                                              $4      'Exception'
          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        SEND_VAL                                                 'assert%28%27%24e+%21%3D%3D+null%27%29'
         11        DO_ICALL                                                 
   11    12        ASSERT_CHECK                                             
         13        INIT_FCALL                                               'assert'
         14        SEND_VAL                                                 '%24var+%21%3D%3D+null'
         15        SEND_VAL                                                 'assert%28%27%24var+%21%3D%3D+null%27%29'
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.17 ms | 1399 KiB | 15 Q