3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyC { public $hello = 'World'; public function hello() { return 'Chandra'; } } $myc = new MyC(); echo $myc->hello . "-" . $myc->hello();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r44JO
function name:  (null)
number of ops:  10
compiled vars:  !0 = $myc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'MyC'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        FETCH_OBJ_R                                      ~4      !0, 'hello'
          4        CONCAT                                           ~5      ~4, '-'
          5        INIT_METHOD_CALL                                         !0, 'hello'
          6        DO_FCALL                                      0  $6      
          7        CONCAT                                           ~7      ~5, $6
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

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

End of function hello

End of class MyC.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.92 ms | 1397 KiB | 13 Q