3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'hello form world. i am windows. i am linux; I and me! You and I; ponies?'; $foos=preg_split('/(?<=[.;!?]\s)(?=[a-z])/',$foo); print_r($foos); //only needed split foreach ($foos as &$f) $f[0]=$f[0]^' '; //xor it uppercase $foo=implode(' ',$foos); print '<br>'.$foo;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 126) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/RiK2o
function name:  (null)
number of ops:  25
compiled vars:  !0 = $foo, !1 = $foos, !2 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hello+form+world.+i+am+windows.+i+am+linux%3B+I+and+me%21+You+and+I%3B+ponies%3F'
    4     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%28%3F%3C%3D%5B.%3B%21%3F%5D%5Cs%29%28%3F%3D%5Ba-z%5D%29%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    8     9      > FE_RESET_RW                                      $7      !1, ->16
         10    > > FE_FETCH_RW                                              $7, !2, ->16
         11    >   FETCH_DIM_R                                      ~9      !2, 0
         12        BW_XOR                                           ~10     ~9, '+'
         13        ASSIGN_DIM                                               !2, 0
         14        OP_DATA                                                  ~10
         15      > JMP                                                      ->10
         16    >   FE_FREE                                                  $7
   10    17        INIT_FCALL                                               'implode'
         18        SEND_VAL                                                 '+'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !0, $11
   12    22        CONCAT                                           ~13     '%3Cbr%3E', !0
         23        ECHO                                                     ~13
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.95 ms | 1395 KiB | 19 Q