3v4l.org

run code in 300+ PHP versions simultaneously
<?php $theWordCleaned="c like c's"; $a=array("/\bc's\b/", "/\bc\b/"); $b=array("XcX", "XCX"); echo preg_replace($a, $b, $theWordCleaned);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W1YRm
function name:  (null)
number of ops:  10
compiled vars:  !0 = $theWordCleaned, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'c+like+c%27s'
    5     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.83 ms | 1393 KiB | 15 Q