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); $str = str_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 = 26
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 26
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/7bpm7
function name:  (null)
number of ops:  28
compiled vars:  !0 = $searchLiterals, !1 = $searchLiteral, !2 = $split, !3 = $preg, !4 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $6      !0, ->26
          2    > > FE_FETCH_R                                               $6, !1, ->26
    7     3    >   INIT_FCALL_BY_NAME                                       'split'
          4        SEND_VAL_EX                                              '+'
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $7      
          7        ASSIGN                                                   !2, $7
    8     8        INIT_FCALL                                               'preg_split'
          9        SEND_VAL                                                 '+'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !3, $9
    9    13        INIT_FCALL                                               'str_split'
         14        SEND_VAL                                                 '+'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !4, $11
   10    18        IS_IDENTICAL                                     ~13     !3, !2
         19        CONCAT                                           ~14     ~13, '%0A'
         20        ECHO                                                     ~14
   11    21        CONCAT                                           ~15     !3, '%09'
         22        CONCAT                                           ~16     ~15, !2
         23        CONCAT                                           ~17     ~16, '%0A'
         24        ECHO                                                     ~17
    5    25      > JMP                                                      ->2
         26    >   FE_FREE                                                  $6
   12    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.34 ms | 1396 KiB | 17 Q