3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('foo', 'bar'); $b = array('truc', 'machin', 'chouette'); $a = $$a + b; var_dump($a);
Output for 7.1.0
Notice: Array to string conversion in /in/Z7gVi on line 5 Notice: Undefined variable: Array in /in/Z7gVi on line 5 Notice: Use of undefined constant b - assumed 'b' in /in/Z7gVi on line 5 Warning: A non-numeric value encountered in /in/Z7gVi on line 5 int(0)
Output for 5.0.4 - 7.0.14
Notice: Array to string conversion in /in/Z7gVi on line 5 Notice: Undefined variable: Array in /in/Z7gVi on line 5 Notice: Use of undefined constant b - assumed 'b' in /in/Z7gVi on line 5 int(0)
Output for 4.3.0 - 5.0.3
Notice: Array to string conversion in /in/Z7gVi on line 5 Notice: Undefined variable: Array in /in/Z7gVi on line 5 Notice: Use of undefined constant b - assumed 'b' in /in/Z7gVi on line 5 int(0)