3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $shop_hoge = 'hoge'; $shop_moge = 'moge'; $shop_piyo = 'piyo'; $shops = array( 'hoge' => '1', 'moge' => '2', 'piyo' => '3'); foreach ($shops as $key => $val) { $k = 'shop_'.$key; echo('key='.$k); }
based on sM1Ye
Output for 4.3.0 - 7.2.6
key=shop_hogekey=shop_mogekey=shop_piyo