3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ '#A' => '12 > 5', '#B' => '4 > 3' ]; $string = '((#A) OR (#B) AND (#A))'; $string = str_replace(array_keys($array), $array, $string); echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dEMQ6
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, '%28%28%23A%29+OR+%28%23B%29+AND+%28%23A%29%29'
    6     2        INIT_FCALL                                               'str_replace'
          3        INIT_FCALL                                               'array_keys'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    8    11        ECHO                                                     !1
    9    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.69 ms | 1010 KiB | 15 Q