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(); $cat->callFunctionTwo(); $cat->variableA = 'Apple'; $cat->variableB = 'Banana';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1JkEp
function name:  (null)
number of ops:  12
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          
   24     5        INIT_METHOD_CALL                                         !0, 'callFunctionTwo'
          6        DO_FCALL                                      0          
   27     7        ASSIGN_OBJ                                               !0, 'variableA'
          8        OP_DATA                                                  'Apple'
   29     9        ASSIGN_OBJ                                               !0, 'variableB'
         10        OP_DATA                                                  'Banana'
         11      > RETURN                                                   1

Class Cat:
Function callfunctionone:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1JkEp
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/1JkEp
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:
167.29 ms | 1394 KiB | 13 Q