3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=62437 function output($buffer) { global $object; return $buffer . $_COOKIES['supercookie']; } $_COOKIE['supercokie'] = 'erwere'; ob_start('output'); $object = 'tertert'; echo "foo ";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iIojv
function name:  (null)
number of ops:  9
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_W                      global              $1      '_COOKIE'
          1        ASSIGN_DIM                                               $1, 'supercokie'
          2        OP_DATA                                                  'erwere'
   10     3        INIT_FCALL                                               'ob_start'
          4        SEND_VAL                                                 'output'
          5        DO_ICALL                                                 
   11     6        ASSIGN                                                   !0, 'tertert'
   14     7        ECHO                                                     'foo+'
          8      > RETURN                                                   1

Function output:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iIojv
function name:  output
number of ops:  6
compiled vars:  !0 = $buffer, !1 = $object, !2 = $_COOKIES
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        BIND_GLOBAL                                              !1, 'object'
    6     2        FETCH_DIM_R                                      ~3      !2, 'supercookie'
          3        CONCAT                                           ~4      !0, ~3
          4      > RETURN                                                   ~4
    7     5*     > RETURN                                                   null

End of function output

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.89 ms | 1399 KiB | 15 Q