3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = " My text has so much whitespace Plenty of spaces and tabs "; var_export( preg_replace( ['/\h+/', '/\v+/'], [' ', PHP_EOL], trim($string) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Ld6N
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%0AMy++++text+++++++has+so++++much+++whitespace++++%0A%0A%0A%0A%0APlenty+of++++spaces++and++++++++++++tabs++'
   10     1        INIT_FCALL                                                   'var_export'
   14     2        FRAMELESS_ICALL_1                trim                ~2      !0
   11     3        FRAMELESS_ICALL_3                preg_replace        ~3      <array>, <array>
   14     4        OP_DATA                                                      ~2
          5        SEND_VAL                                                     ~3
   10     6        DO_ICALL                                                     
   16     7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.27 ms | 476 KiB | 8 Q