3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "tommy" ; ?> <?php headers_sent($filename, $linenum) ; header("name: $name") ; echo "tommy <br>" ; echo "Headers sent in $filename on line $linenum" ; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QCpcB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $name, !1 = $filename, !2 = $linenum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'tommy'
    5     1        ECHO                                                     '%0A%0A%0A%0A'
   12     2        INIT_FCALL                                               'headers_sent'
          3        SEND_REF                                                 !1
          4        SEND_REF                                                 !2
          5        DO_ICALL                                                 
   13     6        INIT_FCALL                                               'header'
          7        NOP                                                      
          8        FAST_CONCAT                                      ~5      'name%3A+', !0
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
   14    11        ECHO                                                     'tommy+%3Cbr%3E'
   16    12        ROPE_INIT                                     4  ~8      'Headers++sent+in+'
         13        ROPE_ADD                                      1  ~8      ~8, !1
         14        ROPE_ADD                                      2  ~8      ~8, '+on+line+'
         15        ROPE_END                                      3  ~7      ~8, !2
         16        ECHO                                                     ~7
   17    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.47 ms | 1394 KiB | 17 Q