Last active
March 29, 2018 14:05
-
-
Save notian/1b635b236f4bb9f20880b467ac2ea4d9 to your computer and use it in GitHub Desktop.
PHP 5.6 -> 7 quirk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "A"; | |
echo include(__DIR__.'/include.php'); | |
echo "C"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( function_exists( 'strpos' )) return 'B'; | |
{ | |
function strpos() | |
{ | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP 5.6 output
PHP 7