3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r( array_filter(str_split(M_PI), 'is_numeric') );
based on RCnVW
Output for 5.0.0 - 7.2.0
Array ( [0] => 3 [2] => 1 [3] => 4 [4] => 1 [5] => 5 [6] => 9 [7] => 2 [8] => 6 [9] => 5 [10] => 3 [11] => 5 [12] => 8 [13] => 9 [14] => 8 )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/Eu7iH 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/Eu7iH 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/Eu7iH on line 4