3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( a => '', b => ''); list($arr->a, $arr->b) = array('hello', 'world'); echo $arr;
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant a - assumed 'a' in /in/YX7SC on line 4 Notice: Use of undefined constant b - assumed 'b' in /in/YX7SC on line 5 Warning: Attempt to assign property of non-object in /in/YX7SC on line 7 Warning: Attempt to assign property of non-object in /in/YX7SC on line 7 Notice: Array to string conversion in /in/YX7SC on line 9 Array
Output for hhvm-3.12.0
Notice: Use of undefined constant a - assumed 'a' in /in/YX7SC on line 4 Notice: Use of undefined constant b - assumed 'b' in /in/YX7SC on line 5 Warning: Cannot access property on non-object in /in/YX7SC on line 7 Warning: Cannot access property on non-object in /in/YX7SC on line 7 Notice: Array to string conversion in /in/YX7SC on line 9 Array
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.3.29
Notice: Use of undefined constant a - assumed 'a' in /in/YX7SC on line 4 Notice: Use of undefined constant b - assumed 'b' in /in/YX7SC on line 5 Warning: Attempt to assign property of non-object in /in/YX7SC on line 7 Warning: Attempt to assign property of non-object in /in/YX7SC on line 7 Array
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant a - assumed 'a' in /in/YX7SC on line 4 Notice: Use of undefined constant b - assumed 'b' in /in/YX7SC on line 5 Array