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 $var; $$var = function(){ ${"gc_".$key} = get_post_meta(get_the_ID(), 'gc_'.$key.'', true); if ((isset(${"gc_".$key})) && (${"gc_".$key} != '')) { echo "<p class=\"goods-material\">$gc_".$key."</p>"; } }; } $show_the_product_material();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 10
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/CkgdH
function name:  (null)
number of ops:  14
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, ->10
          2    > > FE_FETCH_R                                               $5, !1, ->10
    6     3    >   CONCAT                                           ~6      'show_the_product_', !1
          4        ASSIGN                                                   !2, ~6
    7     5        ECHO                                                     !2
    9     6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FCkgdH%3A9%240'
          7        FETCH_W                      local               $8      !2
          8        ASSIGN                                                   $8, ~9
    4     9      > JMP                                                      ->2
         10    >   FE_FREE                                                  $5
   21    11        INIT_DYNAMIC_CALL                                        !3
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FCkgdH%3A9%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 19
filename:       /in/CkgdH
function name:  {closure}
number of ops:  26
compiled vars:  !0 = $key, !1 = $gc_
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   CONCAT                                           ~2      'gc_', !0
          1        INIT_FCALL_BY_NAME                                       'get_post_meta'
          2        INIT_FCALL_BY_NAME                                       'get_the_ID'
          3        DO_FCALL                                      0  $4      
          4        SEND_VAR_NO_REF_EX                                       $4
          5        CONCAT                                           ~5      'gc_', !0
          6        CONCAT                                           ~6      ~5, ''
          7        SEND_VAL_EX                                              ~6
          8        SEND_VAL_EX                                              <true>
          9        DO_FCALL                                      0  $7      
         10        FETCH_W                      local               $3      ~2
         11        ASSIGN                                                   $3, $7
   12    12        CONCAT                                           ~9      'gc_', !0
         13        ISSET_ISEMPTY_VAR                             4  ~10     ~9
         14      > JMPZ_EX                                          ~10     ~10, ->19
         15    >   CONCAT                                           ~11     'gc_', !0
         16        FETCH_R                      local               ~12     ~11
         17        IS_NOT_EQUAL                                     ~13     ~12, ''
         18        BOOL                                             ~10     ~13
         19    > > JMPZ                                                     ~10, ->25
   13    20    >   NOP                                                      
         21        FAST_CONCAT                                      ~14     '%3Cp+class%3D%22goods-material%22%3E', !1
         22        CONCAT                                           ~15     ~14, !0
         23        CONCAT                                           ~16     ~15, '%3C%2Fp%3E'
         24        ECHO                                                     ~16
   17    25    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FCkgdH%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.56 ms | 1399 KiB | 13 Q