3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $client = 'bzp'; $mktList = "ama,pmi,cdi,fna"; $mktList_arr = explode(",",$mktList); var_export($mktList_arr); foreach($mktList_arr as $a){ $$a = $client; echo "$a$bzp"."__products\n"; } ?>
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array ( 0 => 'ama', 1 => 'pmi', 2 => 'cdi', 3 => 'fna', ) Notice: Undefined variable: bzp in /in/0u6Vt on line 10 ama__products Notice: Undefined variable: bzp in /in/0u6Vt on line 10 pmi__products Notice: Undefined variable: bzp in /in/0u6Vt on line 10 cdi__products Notice: Undefined variable: bzp in /in/0u6Vt on line 10 fna__products
Output for 4.3.0 - 5.0.3
array ( 0 => 'ama', 1 => 'pmi', 2 => 'cdi', 3 => 'fna', ) Notice: Undefined variable: bzp in /in/0u6Vt on line 10 ama__products Notice: Undefined variable: bzp in /in/0u6Vt on line 10 pmi__products Notice: Undefined variable: bzp in /in/0u6Vt on line 10 cdi__products Notice: Undefined variable: bzp in /in/0u6Vt on line 10 fna__products