3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { var $boo; function Foo() { $this->boo = md5('foo'); } function go() { echo $this->boo; } } $a = new Foo(); $a->go();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CT9Jo
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'go'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CT9Jo
function name:  Foo
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'md5'
          1        SEND_VAL                                                 'foo'
          2        DO_ICALL                                         $1      
          3        ASSIGN_OBJ                                               'boo'
          4        OP_DATA                                                  $1
   10     5      > RETURN                                                   null

End of function foo

Function go:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CT9Jo
function name:  go
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~0      'boo'
          1        ECHO                                                     ~0
   15     2      > RETURN                                                   null

End of function go

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.93 ms | 1395 KiB | 15 Q