3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = "<?"; $tokensOldContentLength = 0; $possibleOpenContent = substr($content, $tokensOldContentLength, 5); var_dump($possibleOpenContent); var_dump(substr('a', 2, 2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eg1HY
function name:  (null)
number of ops:  20
compiled vars:  !0 = $content, !1 = $tokensOldContentLength, !2 = $possibleOpenContent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3F'
    3     1        ASSIGN                                                   !1, 0
    4     2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 5
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    6     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'substr'
         13        SEND_VAL                                                 'a'
         14        SEND_VAL                                                 2
         15        SEND_VAL                                                 2
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.4 ms | 1395 KiB | 17 Q