3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $variableName = 'MyVariable'; // Create new variable with the name defined in variable $variableName $stack_escrow_balance = 100; $type = 'escrow'; $varstring = '$stack_'.$type.'_balance'; var_dump(${$varstring});
based on ToCiL
Output for 5.0.4 - 7.3.0rc4
Notice: Undefined variable: $stack_escrow_balance in /in/GXNI2 on line 7 NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: $stack_escrow_balance in /in/GXNI2 on line 7 NULL