3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const CMS_IDENTIFIER = '#ELEMENT:'; } $identifier = '#ELEMENT:register'; echo strpos($identifier, Test::CMS_IDENTIFIER); if (0 === strpos($identifier, Test::CMS_IDENTIFIER)) { echo substr($identifier, strlen(Test::CMS_IDENTIFIER)); }

preferences:
49.06 ms | 402 KiB | 5 Q