3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
$comma_separated = 1; $$comma_separated1 = 2; //OP's code <?php echo "[". $comma_separated."],[". $comma_separated1."]"?> //your code <?php echo "[". $comma_separated.",". $comma_separated1."]"?>
Output for 5.0.4 - 7.2.0
$comma_separated = 1; $$comma_separated1 = 2; //OP's code Notice: Undefined variable: comma_separated in /in/9mWgY on line 5 Notice: Undefined variable: comma_separated1 in /in/9mWgY on line 5 [],[] //your code Notice: Undefined variable: comma_separated in /in/9mWgY on line 8 Notice: Undefined variable: comma_separated1 in /in/9mWgY on line 8 [,]
Output for 4.3.0 - 5.0.3
$comma_separated = 1; $$comma_separated1 = 2; //OP's code Notice: Undefined variable: comma_separated in /in/9mWgY on line 5 Notice: Undefined variable: comma_separated1 in /in/9mWgY on line 5 [],[] //your code Notice: Undefined variable: comma_separated in /in/9mWgY on line 8 Notice: Undefined variable: comma_separated1 in /in/9mWgY on line 8 [,]