3v4l.org

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

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

End of function output

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.43 ms | 1386 KiB | 15 Q