3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Framework { private $version = '0'; final public function setVersion($version) { $this->version = $version; } public function getVersion() { return $this->version; } } class Symfony extends Framework { public function getVersion() { return parent::getVersion() . '@unstable'; } } $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/2JXeK
function name:  (null)
number of ops:  10
compiled vars:  !0 = $fw
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   NEW                                              $1      'Symfony'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   28     3        INIT_METHOD_CALL                                         !0, 'setVersion'
          4        SEND_VAL_EX                                              '3.0'
          5        DO_FCALL                                      0          
   30     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/2JXeK
function name:  setVersion
number of ops:  4
compiled vars:  !0 = $version
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        ASSIGN_OBJ                                               'version'
          2        OP_DATA                                                  !0
   11     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/2JXeK
function name:  getVersion
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   FETCH_OBJ_R                                      ~0      'version'
          1      > RETURN                                                   ~0
   16     2*     > RETURN                                                   null

End of function getversion

End of class Framework.

Class Symfony:
Function getversion:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2JXeK
function name:  getVersion
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_STATIC_METHOD_CALL                                  'getVersion'
          1        DO_FCALL                                      0  $0      
          2        CONCAT                                           ~1      $0, '%40unstable'
          3      > RETURN                                                   ~1
   24     4*     > RETURN                                                   null

End of function getversion

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

End of function setversion

End of class Symfony.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.38 ms | 1399 KiB | 13 Q