3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (preg_match("/_/", "6654_2", $matches, PREG_OFFSET_CAPTURE)) { echo $matches[0]+""+$matches[1]; } else { echo "A match was not found."; }
based on bhALs
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/hfMbo on line 4 Fatal error: Uncaught Error: Unsupported operand types in /in/hfMbo:4 Stack trace: #0 {main} thrown in /in/hfMbo on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Fatal error: Uncaught Error: Unsupported operand types in /in/hfMbo:4 Stack trace: #0 {main} thrown in /in/hfMbo on line 4
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Unsupported operand types in /in/hfMbo on line 4
Process exited with code 255.