3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = 1; $$test = 2; ${'t e s t'} = 3; var_dump($test, $$test, ${'t e s t'}); $test = 4; var_dump($$test);
Output for 5.0.4 - 7.1.0
int(1) int(2) int(3) Notice: Undefined variable: 4 in /in/pl2uZ on line 7 NULL
Output for 4.3.0 - 5.0.3
int(1) int(2) int(3) Notice: Undefined variable: 4 in /in/pl2uZ on line 7 NULL