3v4l.org

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

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

End of function output

Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.08 ms | 1395 KiB | 17 Q