3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $asdf = array("temp_derp" => "15", "temp_derpier" => "30", "temp_youdick"=>"50"); echo preg_replace_callback("/temp_[a-z0-9_]*/i", function($match) {return $GLOBALS["asdf"][$match];},"temp_derp+temp_derpier+temp_youdick");
based on JvOZZ
Output for 5.6.0 - 7.3.0beta1
Warning: Illegal offset type in /in/kTcKO on line 3 Warning: Illegal offset type in /in/kTcKO on line 3 Warning: Illegal offset type in /in/kTcKO on line 3 ++