3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array('material', 'britelki', 'chaschka', 'kostochki', 'vkladish', 'zastejka'); foreach($product as $key){ $var = "show_the_product_".$key; echo $key.'<br>'; $$var = function($key){ $a = "gc_".$key; echo $a; }; } $show_the_product_material();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 11
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/uHAmH
function name:  (null)
number of ops:  15
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, ->11
          2    > > FE_FETCH_R                                               $5, !1, ->11
    6     3    >   CONCAT                                           ~6      'show_the_product_', !1
          4        ASSIGN                                                   !2, ~6
    7     5        CONCAT                                           ~8      !1, '%3Cbr%3E'
          6        ECHO                                                     ~8
    8     7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FuHAmH%3A8%240'
          8        FETCH_W                      local               $9      !2
          9        ASSIGN                                                   $9, ~10
    4    10      > JMP                                                      ->2
         11    >   FE_FREE                                                  $5
   16    12        INIT_DYNAMIC_CALL                                        !3
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FuHAmH%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uHAmH
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $key, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        CONCAT                                           ~2      'gc_', !0
          2        ASSIGN                                                   !1, ~2
   10     3        ECHO                                                     !1
   12     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FuHAmH%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.55 ms | 1385 KiB | 13 Q