3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = new StdClass(); $result->ua = 'this'; echo $result->ua; array_intersect_key( (array) $result, $data );
Output for 5.1.0 - 7.1.0
this Notice: Undefined variable: data in /in/m0pDS on line 8 Warning: array_intersect_key(): Argument #2 is not an array in /in/m0pDS on line 8
Output for 5.0.0 - 5.0.5
this Fatal error: Call to undefined function array_intersect_key() in /in/m0pDS on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
this Fatal error: Call to undefined function: array_intersect_key() in /in/m0pDS on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
this Fatal error: Call to undefined function: array_intersect_key() in /in/m0pDS on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
this Fatal error: Call to undefined function: array_intersect_key() in /in/m0pDS on line 8