3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export( str_word_count('do not break|on|pipe', 1, '{..}') ); echo "\n---\n"; var_export( str_word_count('do not break|on|pipe', 1, '{|}') );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aK9P5
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'
    4     1        INIT_FCALL                                               'str_word_count'
          2        SEND_VAL                                                 'do+not+break%7Con%7Cpipe'
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 '%7B..%7D'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
    3     7        DO_ICALL                                                 
    6     8        ECHO                                                     '%0A---%0A'
    7     9        INIT_FCALL                                               'var_export'
    8    10        INIT_FCALL                                               'str_word_count'
         11        SEND_VAL                                                 'do+not+break%7Con%7Cpipe'
         12        SEND_VAL                                                 1
         13        SEND_VAL                                                 '%7B%7C%7D'
         14        DO_ICALL                                         $2      
         15        SEND_VAR                                                 $2
    7    16        DO_ICALL                                                 
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.03 ms | 1000 KiB | 15 Q