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>'; $key = $key."_"; $$var = function($s = 'asdsad'){ $a = "gc_".$s; var_dump($a); }; } $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/iZZuY
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    >   CONCAT                                           ~6      'show_the_product_', !1
          4        ASSIGN                                                   !2, ~6
    7     5        CONCAT                                           ~8      !1, '%3Cbr%3E'
          6        ECHO                                                     ~8
    8     7        CONCAT                                           ~9      !1, '_'
          8        ASSIGN                                                   !1, ~9
    9     9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FiZZuY%3A9%240'
         10        FETCH_W                      local               $11     !2
         11        ASSIGN                                                   $11, ~12
    4    12      > JMP                                                      ->2
         13    >   FE_FREE                                                  $5
   17    14        INIT_DYNAMIC_CALL                                        !3
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FiZZuY%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZZuY
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $s, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV_INIT                                        !0      'asdsad'
   10     1        CONCAT                                           ~2      'gc_', !0
          2        ASSIGN                                                   !1, ~2
   11     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
   13     6      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.69 ms | 1396 KiB | 15 Q