3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ':foo!bar@cookie.net strawberry cheesecake :hello world: this is a message!'; $result = preg_split('/[^:]*:[^:]*\K /', $string, 2); array_unshift($result, ...explode(' ', array_shift($result))); var_export($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fETHh
function name:  (null)
number of ops:  23
compiled vars:  !0 = $string, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Afoo%21bar%40cookie.net+strawberry+cheesecake+%3Ahello+world%3A+this+is+a+message%21'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5B%5E%3A%5D%2A%3A%5B%5E%3A%5D%2A%5CK+%2F'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    6     7        INIT_FCALL                                               'array_unshift'
          8        SEND_REF                                                 !1
          9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '+'
         11        INIT_FCALL                                               'array_shift'
         12        SEND_REF                                                 !1
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16        SEND_UNPACK                                              $6
         17        CHECK_UNDEF_ARGS                                         
         18        DO_ICALL                                                 
    7    19        INIT_FCALL                                               'var_export'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.81 ms | 1001 KiB | 18 Q