3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $haystackfff = file ("http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste" , FILE_IGNORE_NEW_LINES ); $haystackff = array_splice($haystackfff, 93); $haystackf = array_map('strip_tags', $haystackff); $haystack = array_map('trim', $haystackf); $needle = "Trommelsamstag" ; $newArray = array_keys( $haystack , $needle ); foreach ($newArray as $key => $value) { echo " $key - <strong>($value )</strong> <br />" ; }
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/jae4F on line 2 Warning: file(http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/jae4F on line 2 Warning: array_splice() expects parameter 1 to be array, boolean given in /in/jae4F on line 3 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 4 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 5 Warning: array_keys() expects parameter 1 to be array, null given in /in/jae4F on line 9 Warning: Invalid argument supplied for foreach() in /in/jae4F on line 11
Output for hhvm-3.10.0 - 3.12.0
Warning: Failed to open http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste (Could not resolve host: www.ikalender.com) in /in/jae4F on line 2 Warning: Invalid operand type was used: expects array(s) in /in/jae4F on line 3 Warning: array_map(): Argument #2 should be an array or collection Warning: array_map(): Argument #2 should be an array or collection Warning: array_keys() expects parameter 1 to be an array or collection in /in/jae4F on line 9 Warning: Invalid argument supplied for foreach() in /in/jae4F on line 15
Output for 5.2.6 - 5.2.17
Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/jae4F on line 2 Warning: file(http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/jae4F on line 2 Warning: array_splice(): The first argument should be an array in /in/jae4F on line 3 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 4 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 5 Warning: array_keys(): The first argument should be an array in /in/jae4F on line 9 Warning: Invalid argument supplied for foreach() in /in/jae4F on line 11
Output for 5.0.3 - 5.2.5
Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/jae4F on line 2 Warning: file(http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste): failed to open stream: Connection refused in /in/jae4F on line 2 Warning: array_splice(): The first argument should be an array in /in/jae4F on line 3 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 4 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 5 Warning: array_keys(): The first argument should be an array in /in/jae4F on line 9 Warning: Invalid argument supplied for foreach() in /in/jae4F on line 11
Output for 5.0.1 - 5.0.2
Warning: file(): php_network_getaddresses: gethostbyname failed in /in/jae4F on line 2 Warning: file(http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste): failed to open stream: Success in /in/jae4F on line 2 Warning: array_splice(): The first argument should be an array in /in/jae4F on line 3 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 4 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 5 Warning: array_keys(): The first argument should be an array in /in/jae4F on line 9 Warning: Invalid argument supplied for foreach() in /in/jae4F on line 11
Output for 5.0.0
Warning: file(): php_network_getaddresses: gethostbyname failed in /in/jae4F on line 2 Warning: file(http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste): failed to open stream: Bad file descriptor in /in/jae4F on line 2 Warning: array_splice(): The first argument should be an array in /in/jae4F on line 3 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 4 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 5 Warning: array_keys(): The first argument should be an array in /in/jae4F on line 9 Warning: Invalid argument supplied for foreach() in /in/jae4F on line 11
Output for 4.3.3 - 4.3.4, 4.3.10, 4.4.0 - 4.4.9
Notice: Use of undefined constant FILE_IGNORE_NEW_LINES - assumed 'FILE_IGNORE_NEW_LINES' in /in/jae4F on line 2 Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/jae4F on line 2 Warning: file(http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste): failed to open stream: Connection refused in /in/jae4F on line 2 Warning: array_splice(): The first argument should be an array in /in/jae4F on line 3 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 4 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 5 Warning: array_keys(): The first argument should be an array in /in/jae4F on line 9 Warning: Invalid argument supplied for foreach() in /in/jae4F on line 11
Output for 4.3.11
Notice: Use of undefined constant FILE_IGNORE_NEW_LINES - assumed 'FILE_IGNORE_NEW_LINES' in /in/jae4F on line 2 Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/jae4F on line 2 Warning: file(http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste): failed to open stream: Connection refused in /in/jae4F on line 2 Warning: array_splice(): The first argument should be an array in /in/jae4F on line 3 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 4 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 5 Warning: array_keys(): The first argument should be an array in /in/jae4F on line 9
Output for 4.3.5 - 4.3.9
Notice: Use of undefined constant FILE_IGNORE_NEW_LINES - assumed 'FILE_IGNORE_NEW_LINES' in /in/jae4F on line 2 Warning: file(): php_network_getaddresses: gethostbyname failed in /in/jae4F on line 2 Warning: file(http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste): failed to open stream: Success in /in/jae4F on line 2 Warning: array_splice(): The first argument should be an array in /in/jae4F on line 3 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 4 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 5 Warning: array_keys(): The first argument should be an array in /in/jae4F on line 9 Warning: Invalid argument supplied for foreach() in /in/jae4F on line 11
Output for 4.3.2
Notice: Use of undefined constant FILE_IGNORE_NEW_LINES - assumed 'FILE_IGNORE_NEW_LINES' in /in/jae4F on line 2 Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known (is your IPV6 configuration correct? If this error happens all the time, try reconfiguring PHP using --disable-ipv6 option to configure) in /in/jae4F on line 2 Warning: file(http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste): failed to open stream: Connection refused in /in/jae4F on line 2 Warning: array_splice(): The first argument should be an array in /in/jae4F on line 3 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 4 Warning: array_map(): Argument #2 should be an array in /in/jae4F on line 5 Warning: array_keys(): The first argument should be an array in /in/jae4F on line 9 Warning: Invalid argument supplied for foreach() in /in/jae4F on line 11
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant FILE_IGNORE_NEW_LINES - assumed 'FILE_IGNORE_NEW_LINES' in /in/jae4F on line 2 Warning: file() [http://www.php.net/function.file]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/jae4F on line 2 Warning: file(http://www.ikalender.com/kalender-singandgroove/mein-kalender.sp.14.html?&modus=liste) [http://www.php.net/function.file]: failed to create stream: Connection refused in /in/jae4F on line 2 Warning: array_splice() [http://www.php.net/function.array-splice]: The first argument should be an array in /in/jae4F on line 3 Warning: array_map() [http://www.php.net/function.array-map]: Argument #2 should be an array in /in/jae4F on line 4 Warning: array_map() [http://www.php.net/function.array-map]: Argument #2 should be an array in /in/jae4F on line 5 Warning: array_keys() [http://www.php.net/function.array-keys]: The first argument should be an array in /in/jae4F on line 9 Warning: Invalid argument supplied for foreach() in /in/jae4F on line 11