3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
obj_product_EUX1160_49_1_1