3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = "Foo money bar"; echo preg_replace("/(office|rank|money)/i", '<strong>' . ucfirst('$1') . '</strong>', $s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZTdpU
function name:  (null)
number of ops:  10
compiled vars:  !0 = $s
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'Foo+money+bar'
    3     1        INIT_FCALL                                                   'ucfirst'
          2        SEND_VAL                                                     '%241'
          3        DO_ICALL                                             $2      
          4        CONCAT                                               ~3      '%3Cstrong%3E', $2
          5        CONCAT                                               ~4      ~3, '%3C%2Fstrong%3E'
          6        FRAMELESS_ICALL_3                preg_replace        ~5      '%2F%28office%7Crank%7Cmoney%29%2Fi', ~4
          7        OP_DATA                                                      !0
          8        ECHO                                                         ~5
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.91 ms | 2579 KiB | 14 Q