3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '1234 6514 1254 0014'; $string = md5($string); preg_match('/\d+?/', $string, $matches); echo substr($matches[0], 0, 1); printr_r($matches);
based on kP8N6
Output for 7.0.0 - 7.2.0
2 Fatal error: Uncaught Error: Call to undefined function printr_r() in /in/be7qJ:9 Stack trace: #0 {main} thrown in /in/be7qJ on line 9
Process exited with code 255.
Output for 5.3.20 - 5.6.28
2 Fatal error: Call to undefined function printr_r() in /in/be7qJ on line 9
Process exited with code 255.