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.%1s, (case when product.%2s != '' then CONCAT(' - ',product.%2s) 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/8oefo
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 'CONCAT%28product.%251s%2C+%28case+when+product.%252s+%21%3D+%27%27+then+CONCAT%28%27+-+%27%2Cproduct.%252s%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'
          2        SEND_VAL                                                 'name'
          3        SEND_VAL                                                 'color'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.45 ms | 1394 KiB | 15 Q