3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mystr_replace($needle,$replace,$haystack,$count=null){ $args = func_get_args(); return call_user_func_array('str_replace',$args); } echo mystr_replace("frop","frml","frop",1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YqUot
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'mystr_replace'
          1        SEND_VAL                                                 'frop'
          2        SEND_VAL                                                 'frml'
          3        SEND_VAL                                                 'frop'
          4        SEND_VAL                                                 1
          5        DO_FCALL                                      0  $0      
          6        ECHO                                                     $0
          7      > RETURN                                                   1

Function mystr_replace:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YqUot
function name:  mystr_replace
number of ops:  12
compiled vars:  !0 = $needle, !1 = $replace, !2 = $haystack, !3 = $count, !4 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV_INIT                                        !3      null
    3     4        FUNC_GET_ARGS                                    ~5      
          5        ASSIGN                                                   !4, ~5
    4     6        INIT_FCALL                                               'str_replace'
          7        SEND_ARRAY                                               !4
          8        CHECK_UNDEF_ARGS                                         
          9        DO_FCALL                                      0  $7      
         10      > RETURN                                                   $7
    5    11*     > RETURN                                                   null

End of function mystr_replace

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.19 ms | 1397 KiB | 16 Q