3v4l.org

run code in 300+ PHP versions simultaneously
<?php $examples = array( 'Valid 2 Octet Sequence' => "\x80" ); foreach ($examples as $k => $v) { echo "{$k}\n"; echo var_dump((bool)preg_match("//u", $v)); echo "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/Jk61I
function name:  (null)
number of ops:  20
compiled vars:  !0 = $examples, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_R                                       $4      !0, ->18
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->18
          3    >   ASSIGN                                                   !2, ~5
   10     4        NOP                                                      
          5        FAST_CONCAT                                      ~7      !2, '%0A'
          6        ECHO                                                     ~7
   11     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%2F%2Fu'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12        BOOL                                             ~9      $8
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                         $10     
         15        ECHO                                                     $10
   12    16        ECHO                                                     '%0A'
    8    17      > JMP                                                      ->2
         18    >   FE_FREE                                                  $4
   14    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.16 ms | 1395 KiB | 17 Q