3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public $test = "deuxieme"; } $object = new a(); function output($buffer) { global $object; return $buffer." ".$object->test; } ob_start('output'); echo "premier"; ob_flush();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/01KH0
function name:  (null)
number of ops:  10
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_FCALL                                               'ob_start'
          4        SEND_VAL                                                 'output'
          5        DO_ICALL                                                 
   14     6        ECHO                                                     'premier'
   15     7        INIT_FCALL                                               'ob_flush'
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

End of function output

Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.86 ms | 1395 KiB | 17 Q