3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function sayHello() { return 'Hello, ' . $this->val . '!'; } } $c = new Test; $c->val = 'Mr. Duck'; var_dump($c->sayHello());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/esq0j
function name:  (null)
number of ops:  11
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        ASSIGN_OBJ                                               !0, 'val'
          4        OP_DATA                                                  'Mr.+Duck'
   14     5        INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !0, 'sayHello'
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class Test:
Function sayhello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/esq0j
function name:  sayHello
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'val'
          1        CONCAT                                           ~1      'Hello%2C+', ~0
          2        CONCAT                                           ~2      ~1, '%21'
          3      > RETURN                                                   ~2
    8     4*     > RETURN                                                   null

End of function sayhello

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.92 ms | 1386 KiB | 15 Q