3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array('foobar', 'foobaz', array("fooloo")); $out = str_replace('foo', 'hello', $array); var_export($out);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VgF8j
function name:  (null)
number of ops:  8
compiled vars:  !0 = $array, !1 = $out
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        FRAMELESS_ICALL_3                str_replace         ~3      'foo', 'hello'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~3
    5     4        INIT_FCALL                                                   'var_export'
          5        SEND_VAR                                                     !1
          6        DO_ICALL                                                     
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.09 ms | 1733 KiB | 14 Q