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", "color", "size");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QKOAT
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 'CONCAT%28product.%251s%2C+%28case+when+product.%251s+%21%3D+%27%27+then+CONCAT%28%27+-+%27%2Cproduct.%251s%29+else+%27%27+end%29%2C+%28case+when+product.%251s+%21%3D+%27%27+then+CONCAT%28%27+-+%27%2Cproduct.%251s%29+else+%27%27+end%29%29'
          2        SEND_VAL                                                 'name'
          3        SEND_VAL                                                 'color'
          4        SEND_VAL                                                 'size'
          5        DO_ICALL                                         $0      
          6        ECHO                                                     $0
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.95 ms | 1385 KiB | 15 Q