3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cat { public $variableA = 'foo'; public $variableB = 'bar'; function callFunctionOne() { echo "one"; } function callFunctionTwo() { echo "two"; } } $cat = new Cat; $cat->callFunctionOne(); echo "\n"; $cat->callFunctionTwo(); echo "\n"; $cat->variableA = 'Apple'; $cat->variableB = 'Banana';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5FU2d
function name:  (null)
number of ops:  14
compiled vars:  !0 = $cat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'Cat'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   22     3        INIT_METHOD_CALL                                         !0, 'callFunctionOne'
          4        DO_FCALL                                      0          
          5        ECHO                                                     '%0A'
   24     6        INIT_METHOD_CALL                                         !0, 'callFunctionTwo'
          7        DO_FCALL                                      0          
          8        ECHO                                                     '%0A'
   27     9        ASSIGN_OBJ                                               !0, 'variableA'
         10        OP_DATA                                                  'Apple'
   29    11        ASSIGN_OBJ                                               !0, 'variableB'
         12        OP_DATA                                                  'Banana'
         13      > RETURN                                                   1

Class Cat:
Function callfunctionone:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5FU2d
function name:  callFunctionOne
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'one'
    9     1      > RETURN                                                   null

End of function callfunctionone

Function callfunctiontwo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5FU2d
function name:  callFunctionTwo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'two'
   13     1      > RETURN                                                   null

End of function callfunctiontwo

End of class Cat.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
210.91 ms | 1398 KiB | 13 Q