3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string ='華中六街'; var_dump($without = preg_split('/\s+/', $string)); var_dump($with = preg_split('/\s+/u', $string)); var_dump($with == $without); $string ='華中 六街'; var_dump($without = preg_split('/\s+/', $string)); var_dump($with = preg_split('/\s+/u', $string)); var_dump($with == $without);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KS5Sa
function name:  (null)
number of ops:  43
compiled vars:  !0 = $string, !1 = $without, !2 = $with
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E8%8F%AF%E4%B8%AD%E5%85%AD%E8%A1%97'
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F%5Cs%2B%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                           ~5      !1, $4
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'preg_split'
         11        SEND_VAL                                                 '%2F%5Cs%2B%2Fu'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        ASSIGN                                           ~8      !2, $7
         15        SEND_VAL                                                 ~8
         16        DO_ICALL                                                 
    5    17        INIT_FCALL                                               'var_dump'
         18        IS_EQUAL                                         ~10     !2, !1
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                                 
    7    21        ASSIGN                                                   !0, '%E8%8F%AF%E4%B8%AD+%E5%85%AD%E8%A1%97'
    8    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'preg_split'
         24        SEND_VAL                                                 '%2F%5Cs%2B%2F'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $13     
         27        ASSIGN                                           ~14     !1, $13
         28        SEND_VAL                                                 ~14
         29        DO_ICALL                                                 
    9    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'preg_split'
         32        SEND_VAL                                                 '%2F%5Cs%2B%2Fu'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                         $16     
         35        ASSIGN                                           ~17     !2, $16
         36        SEND_VAL                                                 ~17
         37        DO_ICALL                                                 
   10    38        INIT_FCALL                                               'var_dump'
         39        IS_EQUAL                                         ~19     !2, !1
         40        SEND_VAL                                                 ~19
         41        DO_ICALL                                                 
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.94 ms | 1396 KiB | 17 Q