3v4l.org

run code in 300+ PHP versions simultaneously
<?php function display($a, $b) { echo $a; echo ' '; echo $b; } $i = 0; ${"sR{$i}S1"} = "hello"; ${"nR{$i}S1P"} = "world"; display(${"sR{$i}S1"}, ${"nR{$i}S1P"});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sr9bn
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 0
    9     1        ROPE_INIT                                     3  ~3      'sR'
          2        ROPE_ADD                                      1  ~3      ~3, !0
          3        ROPE_END                                      2  ~2      ~3, 'S1'
          4        FETCH_W                      local               $5      ~2
          5        ASSIGN                                                   $5, 'hello'
   10     6        ROPE_INIT                                     3  ~8      'nR'
          7        ROPE_ADD                                      1  ~8      ~8, !0
          8        ROPE_END                                      2  ~7      ~8, 'S1P'
          9        FETCH_W                      local               $10     ~7
         10        ASSIGN                                                   $10, 'world'
   12    11        INIT_FCALL                                               'display'
         12        ROPE_INIT                                     3  ~13     'sR'
         13        ROPE_ADD                                      1  ~13     ~13, !0
         14        ROPE_END                                      2  ~12     ~13, 'S1'
         15        FETCH_R                      local               ~15     ~12
         16        SEND_VAL                                                 ~15
         17        ROPE_INIT                                     3  ~17     'nR'
         18        ROPE_ADD                                      1  ~17     ~17, !0
         19        ROPE_END                                      2  ~16     ~17, 'S1P'
         20        FETCH_R                      local               ~19     ~16
         21        SEND_VAL                                                 ~19
         22        DO_FCALL                                      0          
         23      > RETURN                                                   1

Function display:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sr9bn
function name:  display
number of ops:  6
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        ECHO                                                     !0
    4     3        ECHO                                                     '+'
    5     4        ECHO                                                     !1
    6     5      > RETURN                                                   null

End of function display

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.03 ms | 1403 KiB | 14 Q