3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vrot = new Pisa(); class Pisa { function __construct() { $this->_vrot = true; self::_toPisa(); var_dump($this->_vrot); } private static function _toPisa() { $this->_vrot = 'PISA VROT'; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jf2Wp
function name:  (null)
number of ops:  4
compiled vars:  !0 = $vrot
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'Pisa'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3      > RETURN                                                   1

Class Pisa:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jf2Wp
function name:  __construct
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN_OBJ                                               '_vrot'
          1        OP_DATA                                                  <true>
   12     2        INIT_STATIC_METHOD_CALL                                  '_toPisa'
          3        DO_FCALL                                      0          
   13     4        INIT_FCALL                                               'var_dump'
          5        FETCH_OBJ_R                                      ~2      '_vrot'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   14     8      > RETURN                                                   null

End of function __construct

Function _topisa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jf2Wp
function name:  _toPisa
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   FETCH_THIS                                       $0      
          1        ASSIGN_OBJ                                               $0, '_vrot'
          2        OP_DATA                                                  'PISA+VROT'
   19     3      > RETURN                                                   null

End of function _topisa

End of class Pisa.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.62 ms | 1395 KiB | 15 Q