3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_split('`\s`', 'word split', -1, 0)); var_dump(preg_split('`\s`', 'word split', -1, 7)); var_dump(preg_split('`\s`', 'word split', -1, 100));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NdDRK
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%60%5Cs%60'
          3        SEND_VAL                                                 'word+split'
          4        SEND_VAL                                                 -1
          5        SEND_VAL                                                 0
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'preg_split'
         11        SEND_VAL                                                 '%60%5Cs%60'
         12        SEND_VAL                                                 'word+split'
         13        SEND_VAL                                                 -1
         14        SEND_VAL                                                 7
         15        DO_ICALL                                         $2      
         16        SEND_VAR                                                 $2
         17        DO_ICALL                                                 
    5    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'preg_split'
         20        SEND_VAL                                                 '%60%5Cs%60'
         21        SEND_VAL                                                 'word+split'
         22        SEND_VAL                                                 -1
         23        SEND_VAL                                                 100
         24        DO_ICALL                                         $4      
         25        SEND_VAR                                                 $4
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.81 ms | 1003 KiB | 15 Q