3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Robert"; class Tom { public $t = "name"; public function getName() { return $this->t; } } $a = new Tom; echo "My name is {${$a->getName()}}";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Oe950
function name:  (null)
number of ops:  11
compiled vars:  !0 = $name, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Robert'
   10     1        NEW                                              $3      'Tom'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   12     4        NOP                                                      
          5        INIT_METHOD_CALL                                         !1, 'getName'
          6        DO_FCALL                                      0  $6      
          7        FETCH_R                      local               ~7      $6
          8        FAST_CONCAT                                      ~8      'My+name+is+', ~7
          9        ECHO                                                     ~8
         10      > RETURN                                                   1

Class Tom:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Oe950
function name:  getName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_OBJ_R                                      ~0      't'
          1      > RETURN                                                   ~0
    7     2*     > RETURN                                                   null

End of function getname

End of class Tom.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.65 ms | 1384 KiB | 13 Q