<?php
$string = <<<STRING
what is "this <? echo str_replace(':'," '', 'cool');
STRING;
foreach (array_column(token_get_all($string), 1) as $token) {
echo $token, PHP_EOL;
}
- Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- what is "this <? echo str_replace(':'," '', 'cool');
- Output for 7.3.32 - 7.3.33, 7.4.33, 8.0.13
- what is "this
<?
echo
str_replace
':'
'', 'cool');
preferences:
168.08 ms | 402 KiB | 181 Q