3v4l.org

run code in 500+ PHP versions simultaneously
<?php $file = "25507647_377205372719383_8438629006006905602_n.jpg"; echo substr_replace($file, '...', 6, 32); echo "\n"; echo substr_replace($file, '...', 6, -12);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GM7JA
function name:  (null)
number of ops:  17
compiled vars:  !0 = $file
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '25507647_377205372719383_8438629006006905602_n.jpg'
    3     1        INIT_FCALL                                                   'substr_replace'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     '...'
          4        SEND_VAL                                                     6
          5        SEND_VAL                                                     32
          6        DO_ICALL                                             $2      
          7        ECHO                                                         $2
    4     8        ECHO                                                         '%0A'
    5     9        INIT_FCALL                                                   'substr_replace'
         10        SEND_VAR                                                     !0
         11        SEND_VAL                                                     '...'
         12        SEND_VAL                                                     6
         13        SEND_VAL                                                     -12
         14        DO_ICALL                                             $3      
         15        ECHO                                                         $3
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.95 ms | 2536 KiB | 14 Q