3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = get_defined_vars(); $b = 1; $c = get_defined_vars(); var_dump(array_diff($c, $a));
Output for 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 array(0) { }
Output for 5.4.0 - 5.6.28
Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 Notice: Array to string conversion in /in/C6k7Y on line 8 array(0) { }
Output for 4.3.2 - 5.3.29
array(0) { }
Output for 4.3.0 - 4.3.1
array(1) { ["b"]=> int(1) }