3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $defaults = array('hi'=>1, 'hi2'=>2); $args = array('hi'=>11, 'hi2'=>22, 'this'=>33); $args += $defaults; extract($args); echo $hi, $hi2, $hi3;
Output for 7.1.0 - 7.3.0rc4
Fatal error: Uncaught Error: Cannot re-assign $this in /in/Fr2RU:7 Stack trace: #0 /in/Fr2RU(7): extract(Array) #1 {main} thrown in /in/Fr2RU on line 7
Process exited with code 255.
Output for 5.5.0 - 7.0.20
1122 Notice: Undefined variable: hi3 in /in/Fr2RU on line 9
Output for 4.3.0 - 5.4.45
1122