3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "one two three four five"; [$part1, $part2] = preg_split('/.*\K /', $string); var_export($part1); echo "\n"; var_export($part2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SJpo6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $part1, !2 = $part2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'one+two+three+four+five'
    4     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F.%2A%5CK+%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        FETCH_LIST_R                                     $5      $4, 0
          6        ASSIGN                                                   !1, $5
          7        FETCH_LIST_R                                     $7      $4, 1
          8        ASSIGN                                                   !2, $7
          9        FREE                                                     $4
    6    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    7    13        ECHO                                                     '%0A'
    8    14        INIT_FCALL                                               'var_export'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.87 ms | 1010 KiB | 15 Q