3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static function hello(){ echo "Hello World\n"; } } $y[0] = 'hello'; echo "{A::${y[0]}()}"; echo A::${y[0]}();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4oqa6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  'hello'
   11     2        ROPE_INIT                                     3  ~4      '%7BA%3A%3A'
          3        FETCH_DIM_R                                      ~2      !0, 0
          4        ROPE_ADD                                      1  ~4      ~4, ~2
          5        ROPE_END                                      2  ~3      ~4, '%28%29%7D'
          6        ECHO                                                     ~3
   12     7        FETCH_CONSTANT                                   ~6      'y'
          8        FETCH_DIM_R                                      ~7      ~6, 0
          9        FETCH_R                      local               ~8      ~7
         10        INIT_STATIC_METHOD_CALL                                  'A', ~8
         11        DO_FCALL                                      0  $9      
         12        ECHO                                                     $9
         13      > RETURN                                                   1

Class A:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4oqa6
function name:  hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'Hello+World%0A'
    6     1      > RETURN                                                   null

End of function hello

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.29 ms | 1393 KiB | 13 Q