3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exception = ['will not'=>'will&nbspnot']; $string = 'I will not go'; $string = strtr($string, $exception); $array = explode(' ', $string); var_dump($array); var_dump(array_replace($array, $exception));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pOYa7
function name:  (null)
number of ops:  23
compiled vars:  !0 = $exception, !1 = $string, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'I+will+not+go'
    5     2        INIT_FCALL                                               'strtr'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    6     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '+'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
    8    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'array_replace'
         17        SEND_VAR                                                 !2
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.04 ms | 1395 KiB | 21 Q