3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "LOA_SANTANDER_PERSONAL_LOAN_TIER5"; $split = str_split($str); foreach($split as $chr){ echo $chr . " - " . ord($chr) . PHP_EOL; }
based on DfYjX
Output for 5.0.2 - 7.2.0
L - 76 O - 79 A - 65 _ - 95 S - 83 A - 65 N - 78 T - 84 A - 65 N - 78 D - 68 E - 69 R - 82 _ - 95 P - 80 E - 69 R - 82 S - 83 O - 79 N - 78 A - 65 L - 76 _ - 95 L - 76 O - 79 A - 65 N - 78 _ - 95 T - 84 I - 73 E - 69 R - 82 5 - 53
Output for 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 L - 76PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 O - 79PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 A - 65PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 _ - 95PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 S - 83PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 A - 65PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 N - 78PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 T - 84PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 A - 65PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 N - 78PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 D - 68PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 E - 69PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 R - 82PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 _ - 95PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 P - 80PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 E - 69PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 R - 82PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 S - 83PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 O - 79PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 N - 78PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 A - 65PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 L - 76PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 _ - 95PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 L - 76PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 O - 79PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 A - 65PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 N - 78PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 _ - 95PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 T - 84PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 I - 73PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 E - 69PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 R - 82PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/48hP4 on line 8 5 - 53PHP_EOL
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/48hP4 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/48hP4 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/48hP4 on line 5