3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ "This is a test", "This is a TEST", "Test this testy contest protest test!", "TeSt this", ]; var_export( preg_replace('/\btest\b/i', '<b>$0</b>', $array) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/62qRT
function name:  (null)
number of ops:  7
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   10     1        INIT_FCALL                                                   'var_export'
   11     2        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%5Cbtest%5Cb%2Fi', '%3Cb%3E%240%3C%2Fb%3E'
          3        OP_DATA                                                      !0
          4        SEND_VAL                                                     ~2
   10     5        DO_ICALL                                                     
   12     6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.73 ms | 1878 KiB | 14 Q