3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'start'; function recuperation_info_product_et_decrementation($reference, $qty, $isDeclinaison){ /* Fonction de récupèration et décrementation produit */ $product_infos = array(); $tables = array('product_attribute'); if($isDeclinaison === false) { array_unshift($tables, 'product'); } foreach($tables as $table) { //$query = 'SELECT * FROM `'._DB_PREFIX_.$table.'` WHERE `reference` = "'.$reference.'";'; //$result = Db::getInstance()->executeS($query); /*if($result !== false) { //$product_infos = $result[0]; //decremente_stock($product_infos['id_product'], $qty, $reference, $table); break; }*/ } return $product_infos; } echo 'done';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i5HPm
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'start'
   28     1        ECHO                                                     'done'
          2      > RETURN                                                   1

Function recuperation_info_product_et_decrementation:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 11
filename:       /in/i5HPm
function name:  recuperation_info_product_et_decrementation
number of ops:  17
compiled vars:  !0 = $reference, !1 = $qty, !2 = $isDeclinaison, !3 = $product_infos, !4 = $tables, !5 = $table
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        ASSIGN                                                   !3, <array>
    5     4        ASSIGN                                                   !4, <array>
    7     5        TYPE_CHECK                                    4          !2
          6      > JMPZ                                                     ~8, ->11
    8     7    >   INIT_FCALL                                               'array_unshift'
          8        SEND_REF                                                 !4
          9        SEND_VAL                                                 'product'
         10        DO_ICALL                                                 
   11    11    > > FE_RESET_R                                       $10     !4, ->14
         12    > > FE_FETCH_R                                               $10, !5, ->14
         13    > > JMP                                                      ->12
         14    >   FE_FREE                                                  $10
   21    15      > RETURN                                                   !3
   22    16*     > RETURN                                                   null

End of function recuperation_info_product_et_decrementation

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.18 ms | 1388 KiB | 15 Q