3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = <<<'FILE' class TestTextBefore {} <?php /* class TestComment {} */ class Test {} <<<STRING class TestString {} STRING; class test2 { public function test1() {} public function test2() {} public function test3() {} } class NotATest {} class // valid tokens between the 'class' keyword and the test name /* should be handled correctly */ Test3 {} ?> class TestTestAfter {} FILE; echo $file;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S0CIX
function name:  (null)
number of ops:  3
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'class+TestTextBefore+%7B%7D%0A%0A%3C%3Fphp%0A%0A%2F%2A%0Aclass+TestComment+%7B%7D%0A%2A%2F%0A%0Aclass+Test+%7B%7D%0A%0A%3C%3C%3CSTRING%0Aclass+TestString+%7B%7D%0ASTRING%3B%0A%0Aclass+test2+%7B%0A++++public+function+test1%28%29+%7B%7D%0A++++public+function+test2%28%29+%7B%7D%0A++++public+function+test3%28%29+%7B%7D%0A%7D%0A%0Aclass+NotATest+%7B%7D%0A%0Aclass+%2F%2F+valid+tokens+between+the+%27class%27+keyword+and+the+test+name%0A++++++%2F%2A+should+be+handled+correctly+%2A%2F%0ATest3+%7B%7D%0A%0A%3F%3E%0A%0Aclass+TestTestAfter+%7B%7D'
   35     1        ECHO                                                     !0
          2      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.25 ms | 1392 KiB | 13 Q