3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string ='öl??lö aßßhda äödasdas'; 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/6c6V4
function name:  (null)
number of ops:  22
compiled vars:  !0 = $string, !1 = $without, !2 = $with
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%C3%B6l%3F%3Fl%C3%B6++a%C3%9F%C3%9Fhda++%C3%A4%C3%B6dasdas'
    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                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.13 ms | 1395 KiB | 17 Q