3v4l.org

run code in 300+ PHP versions simultaneously
<?php $searchLiterals = array("HALLO hallo Hallo","Hello asfddgf","h+o+la","H-OLA","sdf.adf","asfd+asdf-asdf.asdf asdf/dsf"); foreach($searchLiterals as $searchLiteral){ $split = split(" ", $searchLiteral); $preg = preg_split(" ", $searchLiteral); echo ($preg === $split)."\n"; echo $preg."\t".$split."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 21
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 21
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/nnilG
function name:  (null)
number of ops:  23
compiled vars:  !0 = $searchLiterals, !1 = $searchLiteral, !2 = $split, !3 = $preg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $5      !0, ->21
          2    > > FE_FETCH_R                                               $5, !1, ->21
    7     3    >   INIT_FCALL_BY_NAME                                       'split'
          4        SEND_VAL_EX                                              '+'
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !2, $6
    8     8        INIT_FCALL                                               'preg_split'
          9        SEND_VAL                                                 '+'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
    9    13        IS_IDENTICAL                                     ~10     !3, !2
         14        CONCAT                                           ~11     ~10, '%0A'
         15        ECHO                                                     ~11
   10    16        CONCAT                                           ~12     !3, '%09'
         17        CONCAT                                           ~13     ~12, !2
         18        CONCAT                                           ~14     ~13, '%0A'
         19        ECHO                                                     ~14
    5    20      > JMP                                                      ->2
         21    >   FE_FREE                                                  $5
   11    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.14 ms | 1395 KiB | 15 Q