3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "This is a test string."; $length = preg_match_all('/[^ ]/' , $value, $matches); echo $length; echo "\n"; //example to filter (space) and the character i $length = preg_match_all('/[^ i]/' , $value, $matches); echo $length;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IPlJi
function name:  (null)
number of ops:  17
compiled vars:  !0 = $value, !1 = $length, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'This+is+a+test+string.'
    3     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5B%5E+%5D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    4     7        ECHO                                                     !1
    5     8        ECHO                                                     '%0A'
    8     9        INIT_FCALL                                               'preg_match_all'
         10        SEND_VAL                                                 '%2F%5B%5E+i%5D%2F'
         11        SEND_VAR                                                 !0
         12        SEND_REF                                                 !2
         13        DO_ICALL                                         $6      
         14        ASSIGN                                                   !1, $6
    9    15        ECHO                                                     !1
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.72 ms | 1009 KiB | 14 Q