3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_export(preg_split('~~', 'abcdefghijklm', 3)); echo "\n---\n"; var_export(preg_split('~(?=.)~', 'abcdefghijklm', 3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3KP1T
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_export'
          1        INIT_FCALL                                                   'preg_split'
          2        SEND_VAL                                                     '%7E%7E'
          3        SEND_VAL                                                     'abcdefghijklm'
          4        SEND_VAL                                                     3
          5        DO_ICALL                                             $0      
          6        SEND_VAR                                                     $0
          7        DO_ICALL                                                     
    5     8        ECHO                                                         '%0A---%0A'
    7     9        INIT_FCALL                                                   'var_export'
         10        INIT_FCALL                                                   'preg_split'
         11        SEND_VAL                                                     '%7E%28%3F%3D.%29%7E'
         12        SEND_VAL                                                     'abcdefghijklm'
         13        SEND_VAL                                                     3
         14        DO_ICALL                                             $2      
         15        SEND_VAR                                                     $2
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
218.48 ms | 3353 KiB | 15 Q