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"; $a = range(1,10000); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nPsAV
function name:  (null)
number of ops:  16
compiled vars:  !0 = $object, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        INIT_FCALL                                               'ob_start'
          4        SEND_VAL                                                 'output'
          5        DO_ICALL                                                 
   14     6        ECHO                                                     'premier'
   16     7        INIT_FCALL                                               'range'
          8        SEND_VAL                                                 1
          9        SEND_VAL                                                 10000
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
   17    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Function output:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nPsAV
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.47 ms | 1395 KiB | 19 Q