3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = hex2bin('4175746f72697a616369f36e20537573616e6120436f6c6f6de920416c6120436964204649524d4144412e706466'); $s2 = preg_replace('#foo#isu', 'bar', $s); echo $s2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fbJFK
function name:  (null)
number of ops:  12
compiled vars:  !0 = $s, !1 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'hex2bin'
          1        SEND_VAL                                                 '4175746f72697a616369f36e20537573616e6120436f6c6f6de920416c6120436964204649524d4144412e706466'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%23foo%23isu'
          6        SEND_VAL                                                 'bar'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    7    10        ECHO                                                     !1
    8    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.76 ms | 1004 KiB | 15 Q