3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hash = '8234jfr98j4fnui4hfj3289rj8'; $numbers = preg_replace('/[a-z]/si', 'a', $hash); $numbers = str_split($numbers); foreach ($numbers as $key => $temp) { if ($temp === 'a') unset($numbers[$key]); } print_r($numbers);
Output for 5.0.0 - 7.1.0
Array ( [0] => 8 [1] => 2 [2] => 3 [3] => 4 [7] => 9 [8] => 8 [10] => 4 [15] => 4 [19] => 3 [20] => 2 [21] => 8 [22] => 9 [25] => 8 )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/BZuQU on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/BZuQU on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/BZuQU on line 4