3v4l.org

run code in 500+ PHP versions simultaneously
<?php $pattern = "/\\s/"; $characters = array( 0x09 /*HT*/, 0x0A /*LF*/, 0x0B /*VT*/, 0x0C /*FF*/, 0x0D /*CR*/, 0x20 /*SP*/ ); foreach ($characters as $code) { echo sprintf("0x%02X: %s\n", $code, preg_match($pattern, chr($code))); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/VaImt
function name:  (null)
number of ops:  17
compiled vars:  !0 = $pattern, !1 = $characters, !2 = $code
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%2F%5Cs%2F'
    3     1        ASSIGN                                                       !1, <array>
   11     2      > FE_RESET_R                                           $5      !1, ->15
          3    > > FE_FETCH_R                                                   $5, !2, ->15
   12     4    >   INIT_FCALL                                                   'sprintf'
          5        SEND_VAL                                                     '0x%2502X%3A+%25s%0A'
          6        SEND_VAR                                                     !2
          7        INIT_FCALL                                                   'chr'
          8        SEND_VAR                                                     !2
          9        DO_ICALL                                             $6      
         10        FRAMELESS_ICALL_2                preg_match          ~7      !0, $6
         11        SEND_VAL                                                     ~7
         12        DO_ICALL                                             $8      
         13        ECHO                                                         $8
   11    14      > JMP                                                          ->3
         15    >   FE_FREE                                                      $5
   13    16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
178.31 ms | 2926 KiB | 17 Q