3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Framework { private $version = '0'; public function setVersion($version) { $this->version = $version; } public function getVersion() { return $this->version; } } class Symfony extends Framework { private $version = '2.5'; public function setVersion($version) { $this->version = $version; } } $fw = new Symfony; $fw->setVersion('3.0'); echo $fw->getVersion();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wh7Io
function name:  (null)
number of ops:  10
compiled vars:  !0 = $fw
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   NEW                                              $1      'Symfony'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   29     3        INIT_METHOD_CALL                                         !0, 'setVersion'
          4        SEND_VAL_EX                                              '3.0'
          5        DO_FCALL                                      0          
   31     6        INIT_METHOD_CALL                                         !0, 'getVersion'
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Class Framework:
Function setversion:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wh7Io
function name:  setVersion
number of ops:  4
compiled vars:  !0 = $version
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               'version'
          2        OP_DATA                                                  !0
   10     3      > RETURN                                                   null

End of function setversion

Function getversion:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wh7Io
function name:  getVersion
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~0      'version'
          1      > RETURN                                                   ~0
   15     2*     > RETURN                                                   null

End of function getversion

End of class Framework.

Class Symfony:
Function setversion:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wh7Io
function name:  setVersion
number of ops:  4
compiled vars:  !0 = $version
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
   24     1        ASSIGN_OBJ                                               'version'
          2        OP_DATA                                                  !0
   25     3      > RETURN                                                   null

End of function setversion

Function getversion:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wh7Io
function name:  getVersion
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~0      'version'
          1      > RETURN                                                   ~0
   15     2*     > RETURN                                                   null

End of function getversion

End of class Symfony.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.38 ms | 1386 KiB | 13 Q