3v4l.org

run code in 500+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=62437 function output($buffer) { global $object; return $buffer . $object->bar; } ob_start('output'); $object = new stdClass(); $object->bar = "bar"; echo "foo "; $test = $object;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ISjiP
function name:  (null)
number of ops:  11
compiled vars:  !0 = $object, !1 = $test
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        NEW                                                  $3      'stdClass'
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !0, $3
   12     6        ASSIGN_OBJ                                                   !0, 'bar'
          7        OP_DATA                                                      'bar'
   14     8        ECHO                                                         'foo+'
   15     9        ASSIGN                                                       !1, !0
         10      > RETURN                                                       1

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

End of function output

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
219.76 ms | 3259 KiB | 14 Q