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/G3AHX
function name:  (null)
number of ops:  9
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        INIT_FCALL                                               'token_get_all'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   11     5        COUNT                                            ~5      !1
          6        CONCAT                                           ~6      ~5, '%0A'
          7        ECHO                                                     ~6
   12     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.35 ms | 1435 KiB | 14 Q