3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array('material', 'britelki', 'chaschka', 'kostochki', 'vkladish', 'zastejka'); if( !function_exists('create_from_variable') ){ function create_from_variable($arr){ foreach($product as $key){ create_function('',"$gc_".$key." = 123; echo '<p>$gc_".$key."</p>';"); } } } create_from_variable($product);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/OL72p
function name:  (null)
number of ops:  11
compiled vars:  !0 = $product
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'function_exists'
          2        SEND_VAL                                                 'create_from_variable'
          3        DO_ICALL                                         $2      
          4        BOOL_NOT                                         ~3      $2
          5      > JMPZ                                                     ~3, ->7
    6     6    >   DECLARE_FUNCTION                                         'create_from_variable'
   18     7    >   INIT_FCALL_BY_NAME                                       'create_from_variable'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function %00create_from_variable%2Fin%2FOL72p%3A6%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 15
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/OL72p
function name:  create_from_variable
number of ops:  17
compiled vars:  !0 = $arr, !1 = $product, !2 = $key, !3 = $gc_
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1      > FE_RESET_R                                       $4      !1, ->15
          2    > > FE_FETCH_R                                               $4, !2, ->15
   10     3    >   INIT_FCALL_BY_NAME                                       'create_function'
          4        SEND_VAL_EX                                              ''
          5        CAST                                          6  ~5      !3
          6        CONCAT                                           ~6      ~5, !2
          7        NOP                                                      
          8        FAST_CONCAT                                      ~7      '+%3D+123%3B+echo+%27%3Cp%3E', !3
          9        CONCAT                                           ~8      ~6, ~7
         10        CONCAT                                           ~9      ~8, !2
         11        CONCAT                                           ~10     ~9, '%3C%2Fp%3E%27%3B'
         12        SEND_VAL_EX                                              ~10
         13        DO_FCALL                                      0          
    8    14      > JMP                                                      ->2
         15    >   FE_FREE                                                  $4
   14    16      > RETURN                                                   null

End of function %00create_from_variable%2Fin%2FOL72p%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.53 ms | 1396 KiB | 18 Q