3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array ( 'one' => 'A {bad} thing.', 'two' => 'So far so {bad}.', ); $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/ED1hB
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%7Bbad%7D'
          3        SEND_VAL                                                 'good'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
   10     7        ECHO                                                     '%24b+%3D+'
   11     8        INIT_FCALL                                               'var_export'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
   12    11        ECHO                                                     '%3B'
         12        ECHO                                                     '%0A'
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.07 ms | 1394 KiB | 17 Q