3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array ( 0 => array ( 'one' => 'A {bad} thing.', 'two' => 'So far so {bad}.', ), 1 => array ( 'one' => 'A {bad} thing, bis.', 'two' => 'So far so {bad}, bis.', ), ); $b = str_replace('{bad}', 'good', $a); echo '$b = '; var_export($b); echo ';', "\n";
based on ED1hB
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tWEWt
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   6     0  E >   QM_ASSIGN                                                !0
  16     1        INIT_FCALL                                               'str_replace'
         2        SEND_VAL                                                 '%7Bbad%7D'
         3        SEND_VAL                                                 'good'
         4        SEND_VAR                                                 !0
         5        DO_ICALL                                         $3      
         6        QM_ASSIGN                                                !1
  18     7        ASSIGN_OBJ                                               '%24b+%3D+'
  19     8        INIT_FCALL                                               'var_export'
         9        SEND_VAR                                                 !1
        10        DO_ICALL                                                 
  20    11        ASSIGN_OBJ                                               '%3B'
        12        ASSIGN_OBJ                                               '%0A'
        13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0