3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'hai'; $bar = &$foo; $gah = &$bar; for($i=0; $i<100; $i++) debug_zval_dump($bar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
Branch analysis from position: 5
filename:       /in/gTEKa
function name:  (null)
number of ops:  12
compiled vars:  !0 = $foo, !1 = $bar, !2 = $gah, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hai'
    3     1        ASSIGN_REF                                               !1, !0
    4     2        ASSIGN_REF                                               !2, !1
    5     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->9
    6     5    >   INIT_FCALL                                               'debug_zval_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    5     8        PRE_INC                                                  !3
          9    >   IS_SMALLER                                               !3, 100
         10      > JMPNZ                                                    ~10, ->5
    6    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.5 ms | 1394 KiB | 15 Q