3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo strcspn('cdplayer', 'b..e'); echo "\n---\n"; echo strcspn('cdplayer', 'bcde');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t9RCI
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'strcspn'
          1        SEND_VAL                                                     'cdplayer'
          2        SEND_VAL                                                     'b..e'
          3        DO_ICALL                                             $0      
          4        ECHO                                                         $0
    4     5        ECHO                                                         '%0A---%0A'
    5     6        INIT_FCALL                                                   'strcspn'
          7        SEND_VAL                                                     'cdplayer'
          8        SEND_VAL                                                     'bcde'
          9        DO_ICALL                                             $1      
         10        ECHO                                                         $1
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.31 ms | 1850 KiB | 14 Q