3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '$error = "An error page was displayed to the Web Services user.\nDetails: The Status you have chosen is invalid.\n\nStack Trace: Stack trace:.........";'; $pat = "/.+Details: (.+) \\n\\nStack.+/m"; preg_match($pat,$string,$matches); var_dump($matches);
based on k9BsK
Output for 4.3.0 - 7.3.0rc4
array(0) { }