3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="word1<>word2<>word3<>word4"; $arr=preg_split('#<>#i',$str); print_r($arr); $arr2=explode("<>",$str); print_r($arr2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7gm3c
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str, !1 = $arr, !2 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'word1%3C%3Eword2%3C%3Eword3%3C%3Eword4'
    3     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%23%3C%3E%23i'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%3C%3E'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
    6    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.7 ms | 1386 KiB | 19 Q