3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '/* Single home page checked out message. */ "SINGLE_HOME_PAGE_CHECKED_OUT_FORMAT_EMAIL" = "A copy of your bill has been sent to %@";'; echo strstr($string, '*/'); echo PHP_EOL . PHP_EOL; echo strrchr($string, '*/'); echo PHP_EOL . PHP_EOL; var_dump(explode('*/', $string));
based on njru3
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
*/ "SINGLE_HOME_PAGE_CHECKED_OUT_FORMAT_EMAIL" = "A copy of your bill has been sent to %@"; */ "SINGLE_HOME_PAGE_CHECKED_OUT_FORMAT_EMAIL" = "A copy of your bill has been sent to %@"; array(2) { [0]=> string(41) "/* Single home page checked out message. " [1]=> string(89) " "SINGLE_HOME_PAGE_CHECKED_OUT_FORMAT_EMAIL" = "A copy of your bill has been sent to %@";" }
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
*/ "SINGLE_HOME_PAGE_CHECKED_OUT_FORMAT_EMAIL" = "A copy of your bill has been sent to %@"; Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/igPU7 on line 8 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/igPU7 on line 8 PHP_EOLPHP_EOL*/ "SINGLE_HOME_PAGE_CHECKED_OUT_FORMAT_EMAIL" = "A copy of your bill has been sent to %@"; Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/igPU7 on line 12 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/igPU7 on line 12 PHP_EOLPHP_EOLarray(2) { [0]=> string(41) "/* Single home page checked out message. " [1]=> string(89) " "SINGLE_HOME_PAGE_CHECKED_OUT_FORMAT_EMAIL" = "A copy of your bill has been sent to %@";" }