3v4l.org

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

Class Foo:
Function setfoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BXFJE
function name:  setFoo
number of ops:  5
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        CAST                                          6  ~2      !0
          2        ASSIGN_OBJ                                               'bar'
          3        OP_DATA                                                  ~2
   13     4      > RETURN                                                   null

End of function setfoo

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.27 ms | 1397 KiB | 13 Q