3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.17 ms | 1395 KiB | 19 Q