3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private function one(): int { return 1; } public function sayOne(): void { // accidentally capitalized method name echo $this->One(); } } $t = new Test(); $t->sayOne();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DDqqJ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_METHOD_CALL                                         !0, 'sayOne'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Test:
Function one:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DDqqJ
function name:  one
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   1
    8     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function one

Function sayone:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DDqqJ
function name:  sayOne
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_METHOD_CALL                                         'One'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
   14     3      > RETURN                                                   null

End of function sayone

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
256.69 ms | 1398 KiB | 14 Q