3v4l.org

run code in 500+ PHP versions simultaneously
<?php $strings = [ 'he said "hello worLd"', 'he sAId "καλημέρα ΚΌΣΜΕ" to me', "Ryan's shirts are verY large", ]; var_export( preg_replace_callback('/[^"]+/', fn($m) => mb_convert_case($m[0], MB_CASE_TITLE, "UTF-8"), $strings) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8BRIp
function name:  (null)
number of ops:  11
compiled vars:  !0 = $strings
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1        INIT_FCALL                                                   'var_export'
    9     2        INIT_FCALL                                                   'preg_replace_callback'
          3        SEND_VAL                                                     '%2F%5B%5E%22%5D%2B%2F'
          4        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          5        SEND_VAL                                                     ~2
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
    8     9        DO_ICALL                                                     
   10    10      > RETURN                                                       1


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

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.92 ms | 1729 KiB | 16 Q