3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooArrayToString { public array $foo; public function doFoo(int $arr): void { $this->foo = $arr; var_dump($this->foo); } } var_dump((array)1); $f = new FooArrayToString(); $f->doFoo(1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H5XnR
function name:  (null)
number of ops:  11
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        CAST                                          7  ~1      1
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
   16     4        NEW                                              $3      'FooArrayToString'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
   17     7        INIT_METHOD_CALL                                         !0, 'doFoo'
          8        SEND_VAL_EX                                              1
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class FooArrayToString:
Function dofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H5XnR
function name:  doFoo
number of ops:  8
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               'foo'
          2        OP_DATA                                                  !0
   10     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_R                                      ~2      'foo'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
   11     7      > RETURN                                                   null

End of function dofoo

End of class FooArrayToString.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.72 ms | 999 KiB | 14 Q