3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code =<<<'EOF' <?php /** * @param string $content */ function strlen($content) { for ($len = 0; isset($content[$length]); $en++); return $len; } EOF; var_dump(token_get_all($code));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UJ9ph
function name:  (null)
number of ops:  8
compiled vars:  !0 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fphp%0A%0A%2F%2A%2A%0A+%2A+%40param+string+%24content%0A+%2A%2F%0Afunction+strlen%28%24content%29%0A%7B%0A++++for+%28%24len+%3D+0%3B+isset%28%24content%5B%24length%5D%29%3B+%24en%2B%2B%29%3B%0A%0A++++return+%24len%3B%0A%7D'
   16     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'token_get_all'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.92 ms | 1393 KiB | 17 Q