3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s1 = "helllooooo"; $s2 = "andy"; var_dump (substr_replace($s1, $s2, 0, 0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/npNO8
function name:  (null)
number of ops:  12
compiled vars:  !0 = $s1, !1 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'helllooooo'
          1        ASSIGN                                                   !1, 'andy'
    3     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'substr_replace'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 0
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.31 ms | 1394 KiB | 17 Q