3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); var_dump(substr_replace(array("x", "y"), array(), array(), 0)); var_dump(substr_replace(array("x", "y"), array(), 0, array())); var_dump(substr_replace(array("x", "y"), array(), array(), array())); var_dump(substr_replace(array("x", "y"), array(), 0, 0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q5YOo
function name:  (null)
number of ops:  40
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'substr_replace'
          5        SEND_VAL                                                 <array>
          6        SEND_VAL                                                 <array>
          7        SEND_VAL                                                 <array>
          8        SEND_VAL                                                 0
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                                 
    4    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'substr_replace'
         14        SEND_VAL                                                 <array>
         15        SEND_VAL                                                 <array>
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 <array>
         18        DO_ICALL                                         $3      
         19        SEND_VAR                                                 $3
         20        DO_ICALL                                                 
    5    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'substr_replace'
         23        SEND_VAL                                                 <array>
         24        SEND_VAL                                                 <array>
         25        SEND_VAL                                                 <array>
         26        SEND_VAL                                                 <array>
         27        DO_ICALL                                         $5      
         28        SEND_VAR                                                 $5
         29        DO_ICALL                                                 
    6    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'substr_replace'
         32        SEND_VAL                                                 <array>
         33        SEND_VAL                                                 <array>
         34        SEND_VAL                                                 0
         35        SEND_VAL                                                 0
         36        DO_ICALL                                         $7      
         37        SEND_VAR                                                 $7
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.8 ms | 1396 KiB | 19 Q