3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $view = "bar"; public function getView() { return $this->view; } } $a = unserialize(file_get_contents("/tmp/test.tmp")); var_dump($a, $a->getView());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oaIl2
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'unserialize'
          1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 '%2Ftmp%2Ftest.tmp'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   14     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        INIT_METHOD_CALL                                         !0, 'getView'
         10        DO_FCALL                                      0  $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

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

End of function getview

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.61 ms | 1395 KiB | 19 Q