3v4l.org

run code in 300+ PHP versions simultaneously
<?hh $something = 42; $closure = function (string $str) : int use (&$something) { return strlen($str) + $something; }; $something = 3; echo $closure("hello"); $something = 4; echo $closure("hello");

This is an error 404

There are `0` results


preferences:
157.86 ms | 1399 KiB | 7 Q