3v4l.org

run code in 300+ PHP versions simultaneously
<?php $whitespace = "\x09\x0b"; $string = "hi".$whitespace."bob : letter v"; echo $string . "\n"; echo preg_replace('/\s\s+|\\f|\\n|\\r|\x09|\x0b/', '', $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vmIo1
function name:  (null)
number of ops:  13
compiled vars:  !0 = $whitespace, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%09%0B'
    4     1        CONCAT                                           ~3      'hi', !0
          2        CONCAT                                           ~4      ~3, 'bob+%3A+letter+v'
          3        ASSIGN                                                   !1, ~4
    6     4        CONCAT                                           ~6      !1, '%0A'
          5        ECHO                                                     ~6
    8     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2F%5Cs%5Cs%2B%7C%5Cf%7C%5Cn%7C%5Cr%7C%5Cx09%7C%5Cx0b%2F'
          8        SEND_VAL                                                 ''
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        ECHO                                                     $7
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.77 ms | 1385 KiB | 15 Q