3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace WebSharks\Challenge; $a = ['patdumona', 'kristinedp', 'raamdes', 'renzmp', 'reedysete']; print_r[str_replace("a","d",$a,$i)];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/coD84
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_CONSTANT                                   ~3      'WebSharks%5CChallenge%5Cprint_r'
          2        INIT_NS_FCALL_BY_NAME                                    'WebSharks%5CChallenge%5Cstr_replace'
          3        SEND_VAL_EX                                              'a'
          4        SEND_VAL_EX                                              'd'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $4      
          8        FETCH_DIM_R                                      ~5      ~3, $4
          9        FREE                                                     ~5
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.71 ms | 1394 KiB | 15 Q