3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo sprintf("CONCAT(product.%1s, (case when product.%1s != '' then CONCAT(' - ',product.%1s) else '' end), (case when product.%1s != '' then CONCAT(' - ',product.%1s) else '' end))", "name"); echo sprintf("CONCAT(product.%1$s, (case when product.%2$s != '' then CONCAT(' - ',product.%2$s) else '' end), (case when product.size != '' then CONCAT(' - ',product.size) else '' end))", "name", "color");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0mKHX
function name:  (null)
number of ops:  14
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'sprintf'
          1        ROPE_INIT                                     7  ~2      'CONCAT%28product.%251'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_ADD                                      2  ~2      ~2, '%2C+%28case+when+product.%252'
          4        ROPE_ADD                                      3  ~2      ~2, !0
          5        ROPE_ADD                                      4  ~2      ~2, '+%21%3D+%27%27+then+CONCAT%28%27+-+%27%2Cproduct.%252'
          6        ROPE_ADD                                      5  ~2      ~2, !0
          7        ROPE_END                                      6  ~1      ~2, '%29+else+%27%27+end%29%2C+%28case+when+product.size+%21%3D+%27%27+then+CONCAT%28%27+-+%27%2Cproduct.size%29+else+%27%27+end%29%29'
          8        SEND_VAL                                                 ~1
          9        SEND_VAL                                                 'name'
         10        SEND_VAL                                                 'color'
         11        DO_ICALL                                         $6      
         12        ECHO                                                     $6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.24 ms | 1394 KiB | 15 Q