3v4l.org

run code in 300+ PHP versions simultaneously
<?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});

preferences:
65.27 ms | 402 KiB | 5 Q