3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pipedExclusions = 'SMK|USA|AUS'; echo preg_replace_callback( '~\b(?:(?:' . $pipedExclusions . ')(*SKIP)(*FAIL)|\p{Lu}+)\b~u', function($m) { return mb_convert_case($m[0], MB_CASE_TITLE); }, 'SMK SUNGAI PUNAI' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WfDYk
function name:  (null)
number of ops:  11
compiled vars:  !0 = $pipedExclusions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'SMK%7CUSA%7CAUS'
    4     1        INIT_FCALL                                               'preg_replace_callback'
    5     2        CONCAT                                           ~2      '%7E%5Cb%28%3F%3A%28%3F%3A', !0
          3        CONCAT                                           ~3      ~2, '%29%28%2ASKIP%29%28%2AFAIL%29%7C%5Cp%7BLu%7D%2B%29%5Cb%7Eu'
          4        SEND_VAL                                                 ~3
    6     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FWfDYk%3A6%240'
    8     6        SEND_VAL                                                 ~4
    9     7        SEND_VAL                                                 'SMK+SUNGAI+PUNAI'
          8        DO_ICALL                                         $5      
          9        ECHO                                                     $5
   10    10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FWfDYk%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WfDYk
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'mb_convert_case'
          2        FETCH_DIM_R                                      ~1      !0, 0
          3        SEND_VAL                                                 ~1
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $2      
          6      > RETURN                                                   $2
    8     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FWfDYk%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.59 ms | 1400 KiB | 17 Q