3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $re = '/Fatal error:/'; $str = ' Fatal error: Call to a member function routeRequest() on a non-object in /apps/newalexeygoncharenko/lib/components/shared/lib/NetworkPathService.php on line 59 ddfdsddf '; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result var_dump($matches);
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(1) { [0]=> array(1) { [0]=> string(12) "Fatal error:" } }