3v4l.org

run code in 300+ PHP versions simultaneously
<?php class msg{ public $message = "Hello, I am"; public function introduce($name){ return $this->message.$name; } } $mymsg = new msg(); $mymsg->introduce('Scott');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PLfPb
function name:  (null)
number of ops:  7
compiled vars:  !0 = $mymsg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'msg'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_METHOD_CALL                                         !0, 'introduce'
          4        SEND_VAL_EX                                              'Scott'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class msg:
Function introduce:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PLfPb
function name:  introduce
number of ops:  5
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        FETCH_OBJ_R                                      ~1      'message'
          2        CONCAT                                           ~2      ~1, !0
          3      > RETURN                                                   ~2
    7     4*     > RETURN                                                   null

End of function introduce

End of class msg.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.96 ms | 1393 KiB | 13 Q