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
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 ); |
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
add_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 5 ); |
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 | |
$a = 1; | |
code; | |
$tokens = token_get_all($code); | |
foreach ($tokens as $token) { | |
if (is_array($token)) { | |
echo "Line {$token[2]}: ", token_name($token[0]), " ('{$token[1]}')", PHP_EOL; | |
} else { |
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
Line 1: T_OPEN_TAG ('<?php | |
') | |
Line 2: T_VARIABLE ('$a') | |
Line 2: T_WHITESPACE (' ') | |
string(1) "=" | |
Line 2: T_WHITESPACE (' ') | |
Line 2: T_LNUMBER ('1') | |
string(1) ";" |
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
$code = <<<'code' | |
<?php | |
$a = 1; | |
code; | |
print_r(ast\parse_code($code, 30)); |
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
ast\Node Object ( | |
[kind] => 132 | |
[flags] => 0 | |
[lineno] => 1 | |
[children] => Array ( | |
[0] => ast\Node Object ( | |
[kind] => 517 | |
[flags] => 0 | |
[lineno] => 2 | |
[children] => Array ( |
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 (PHP_VERSION === '7.1.0-dev') { | |
echo 'Yay', PHP_EOL; | |
} |
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 -dopcache.enable_cli=1 -dopcache.optimization_level=0 -dvld.active=1 -dvld.execute=0 file.php |
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
line #* E I O op fetch ext return operands | |
------------------------------------------------------------------------------------- | |
3 0 E > > JMPZ <true>, ->3 | |
4 1 > ECHO 'Yay' | |
2 ECHO '%0A' | |
7 3 > > RETURN |
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 -dopcache.enable_cli=1 -dopcache.optimization_level=1111 -dvld.active=-1 -dvld.execute=0 file.php |