3v4l.org

run code in 300+ 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 = 18
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/VaImt
function name:  (null)
number of ops:  20
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, ->18
          3    > > FE_FETCH_R                                               $5, !2, ->18
   12     4    >   INIT_FCALL                                               'sprintf'
          5        SEND_VAL                                                 '0x%2502X%3A+%25s%0A'
          6        SEND_VAR                                                 !2
          7        INIT_FCALL                                               'preg_match'
          8        SEND_VAR                                                 !0
          9        INIT_FCALL                                               'chr'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        ECHO                                                     $8
   11    17      > JMP                                                      ->3
         18    >   FE_FREE                                                  $5
   13    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
256.36 ms | 1003 KiB | 16 Q