3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mult = function($a, $b) { return $a * $b; }; $arr = [ 'foo' => 3 ]; $sql = <<<SQL SELECT {$mult($arr['foo'], 2)}; SQL; echo $sql;
based on AWAS6
Output for 5.6.0 - 7.3.0rc4
SELECT 6;