3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class HelloWorld { public function func(int $param1, int $param2) : void{ $str = "hello"; $str["a"] = "w"; $str["b"] = "o"; //\PHPStan\dumpType($str); var_dump($str); } } (new HelloWorld())->func(1, 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N9Aoe
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $0      'HelloWorld'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'func'
          3        SEND_VAL_EX                                              1
          4        SEND_VAL_EX                                              2
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class HelloWorld:
Function func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N9Aoe
function name:  func
number of ops:  11
compiled vars:  !0 = $param1, !1 = $param2, !2 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ASSIGN                                                   !2, 'hello'
    7     3        ASSIGN_DIM                                               !2, 'a'
          4        OP_DATA                                                  'w'
    8     5        ASSIGN_DIM                                               !2, 'b'
          6        OP_DATA                                                  'o'
   10     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
   11    10      > RETURN                                                   null

End of function func

End of class HelloWorld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.13 ms | 1004 KiB | 14 Q