3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = <<<EOF <?php echo "Hello"; /** * This is an unclosed PHPDoc block EOF; $test = @token_get_all($code); echo count($test) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DDWSh
function name:  (null)
number of ops:  11
compiled vars:  !0 = $code, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fphp%0A++++echo+%22Hello%22%3B%0A++++%2F%2A%2A%0A+++++%2A+This+is+an+unclosed+PHPDoc+block'
   10     1        BEGIN_SILENCE                                    ~3      
          2        INIT_FCALL                                               'token_get_all'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        END_SILENCE                                              ~3
          6        ASSIGN                                                   !1, $4
   11     7        COUNT                                            ~6      !1
          8        CONCAT                                           ~7      ~6, '%0A'
          9        ECHO                                                     ~7
   12    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.27 ms | 1435 KiB | 14 Q