3v4l.org

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

Function displayr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QfK0t
function name:  displayR
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '+'
          4        INIT_ARRAY                                       ~2      !0
          5        ADD_ARRAY_ELEMENT                                ~2      !1
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8      > RETURN                                                   $3
    5     9*     > RETURN                                                   null

End of function displayr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.7 ms | 1398 KiB | 16 Q