3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'a'; $b = &$a; unset($b); var_dump($a); $a = 'a'; $b = &$a; $b = NULL; var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HXVIN
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a'
    4     1        ASSIGN_REF                                               !1, !0
    5     2        UNSET_CV                                                 !1
    6     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    8     6        ASSIGN                                                   !0, 'a'
    9     7        ASSIGN_REF                                               !1, !0
   10     8        ASSIGN                                                   !1, null
   11     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.15 ms | 1003 KiB | 14 Q