3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public const FILENAME_REGEX = <<<REGEX (("([^"]+)")|('([^']+)')|([\x21\x23-\x27\x2A\x2B\x2D\x2E\x30-\x39\x41-\x5A\x5E-\x7E]+)) REGEX; } echo Foo::FILENAME_REGEX.PHP_EOL; class Bar { public const FILENAME_REGEX = <<<REGEX (("([^"]+)")|('([^']+)')|([\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2E\\x30-\\x39\\x41-\\x5A\\x5E-\\x7E]+)) REGEX; } echo Bar::FILENAME_REGEX.PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/41fBL
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     '%28%28%22%28%5B%5E%22%5D%2B%29%22%29%7C%28%27%28%5B%5E%27%5D%2B%29%27%29%7C%28%5B%21%23-%27%2A%2B-.0-9A-Z%5E-%7E%5D%2B%29%29%0A'
   17     1        ECHO                                                     '%28%28%22%28%5B%5E%22%5D%2B%29%22%29%7C%28%27%28%5B%5E%27%5D%2B%29%27%29%7C%28%5B%5Cx21%5Cx23-%5Cx27%5Cx2A%5Cx2B%5Cx2D%5Cx2E%5Cx30-%5Cx39%5Cx41-%5Cx5A%5Cx5E-%5Cx7E%5D%2B%29%29%0A'
   18     2      > RETURN                                                   1

Class Foo: [no user functions]
Class Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.01 ms | 1000 KiB | 13 Q