3v4l.org

run code in 500+ 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";
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:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   16     1        FRAMELESS_ICALL_3                str_replace         ~3      '%7Bbad%7D', 'good'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~3
   18     4        ECHO                                                         '%24b+%3D+'
   19     5        INIT_FCALL                                                   'var_export'
          6        SEND_VAR                                                     !1
          7        DO_ICALL                                                     
   20     8        ECHO                                                         '%3B'
          9        ECHO                                                         '%0A'
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.72 ms | 3345 KiB | 14 Q