3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_cache_key($sku, $store_id, $user_type_id, $b_is_return_sales) { return sprintf( 'obj_product_%s_%s_%s_%s', (string) $sku, (int) $store_id, (int) $user_type_id, (bool) $b_is_return_sales ? 1 : 0 ); } echo get_cache_key("EUX1160", 49, 1, true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ERGEM
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'get_cache_key'
          1        SEND_VAL                                                 'EUX1160'
          2        SEND_VAL                                                 49
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 <true>
          5        DO_FCALL                                      0  $0      
          6        ECHO                                                     $0
          7      > RETURN                                                   1

Function get_cache_key:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ERGEM
function name:  get_cache_key
number of ops:  21
compiled vars:  !0 = $sku, !1 = $store_id, !2 = $user_type_id, !3 = $b_is_return_sales
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    4     4        INIT_FCALL                                               'sprintf'
    5     5        SEND_VAL                                                 'obj_product_%25s_%25s_%25s_%25s'
    6     6        CAST                                          6  ~4      !0
          7        SEND_VAL                                                 ~4
    7     8        CAST                                          4  ~5      !1
          9        SEND_VAL                                                 ~5
    8    10        CAST                                          4  ~6      !2
         11        SEND_VAL                                                 ~6
    9    12        BOOL                                             ~7      !3
         13      > JMPZ                                                     ~7, ->16
         14    >   QM_ASSIGN                                        ~8      1
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~8      0
         17    >   SEND_VAL                                                 ~8
         18        DO_ICALL                                         $9      
         19      > RETURN                                                   $9
   11    20*     > RETURN                                                   null

End of function get_cache_key

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.61 ms | 1399 KiB | 16 Q