3v4l.org

run code in 300+ PHP versions simultaneously
<?php $decoded = html_entity_decode('&#65534;'); $result = preg_match('/./su', $decoded, $matches); var_dump($result); var_dump($matches); var_dump(PCRE_VERSION); if (!preg_match('/./su', $decoded)) { throw new \InvalidArgumentException("Received invalid UTF-8 for string column"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 29
Branch analysis from position: 25
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ARKNe
function name:  (null)
number of ops:  30
compiled vars:  !0 = $decoded, !1 = $result, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'html_entity_decode'
          1        SEND_VAL                                                 '%26%2365534%3B'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%2F.%2Fsu'
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !2
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAL                                                 '10.35+2020-05-09'
         18        DO_ICALL                                                 
   11    19        INIT_FCALL                                               'preg_match'
         20        SEND_VAL                                                 '%2F.%2Fsu'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $10     
         23        BOOL_NOT                                         ~11     $10
         24      > JMPZ                                                     ~11, ->29
   13    25    >   NEW                                              $12     'InvalidArgumentException'
         26        SEND_VAL_EX                                              'Received+invalid+UTF-8+for+string+column'
         27        DO_FCALL                                      0          
         28      > THROW                                         0          $12
   14    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.21 ms | 1401 KiB | 19 Q