3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooX { public $bar = 'barValue'; protected $baz = array('bazValue'=>"sdfsdf","test"=>"sdfdsf"); private $tab = 'tabValue'; protected function x(){ return array($this->baz); } } $data = new FooX(); echo print_r((array)$data->x());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/beq5i
function name:  (null)
number of ops:  11
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'FooX'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_FCALL                                               'print_r'
          4        INIT_METHOD_CALL                                         !0, 'x'
          5        DO_FCALL                                      0  $4      
          6        CAST                                          7  ~5      $4
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9        ECHO                                                     $6
         10      > RETURN                                                   1

Class FooX:
Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/beq5i
function name:  x
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_OBJ_R                                      ~0      'baz'
          1        INIT_ARRAY                                       ~1      ~0
          2      > RETURN                                                   ~1
   10     3*     > RETURN                                                   null

End of function x

End of class FooX.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.01 ms | 1394 KiB | 15 Q