3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = "<?"; $tokensOldContentLength = 0; $possibleOpenContent = substr($content, -1, 5); var_dump($possibleOpenContent); var_dump(substr('a', 2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dRE32
function name:  (null)
number of ops:  19
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_VAL                                                 -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        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
36.44 ms | 416 KiB | 15 Q