3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array('material', 'britelki', 'chaschka', 'kostochki', 'vkladish', 'zastejka'); foreach($product as $key){ global $$var; $var = "show_the_product_".$key; echo $var; $$var = function(){ echo '123'; }; } $show_the_product_material();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/LMuR6
function name:  (null)
number of ops:  17
compiled vars:  !0 = $product, !1 = $key, !2 = $var, !3 = $show_the_product_material
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $5      !0, ->13
          2    > > FE_FETCH_R                                               $5, !1, ->13
    6     3    >   FETCH_W                      global lock         $6      !2
          4        FETCH_W                      local               $7      !2
          5        ASSIGN_REF                                               $7, $6
    8     6        CONCAT                                           ~8      'show_the_product_', !1
          7        ASSIGN                                                   !2, ~8
    9     8        ECHO                                                     !2
   11     9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FLMuR6%3A11%240'
         10        FETCH_W                      local               $10     !2
         11        ASSIGN                                                   $10, ~11
    4    12      > JMP                                                      ->2
         13    >   FE_FREE                                                  $5
   22    14        INIT_DYNAMIC_CALL                                        !3
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FLMuR6%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LMuR6
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     '123'
   15     1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FLMuR6%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.06 ms | 1385 KiB | 13 Q