3v4l.org

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

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

End of function intro

End of class myclass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.7 ms | 1384 KiB | 13 Q