Test: /ext/standard/tests/strings/str_replace.phpt - Version 7.2.0-dev    

There are 2 different diffs reported by users for this test.

Count Diff
13 (76%)
005+ NULL
005- int(0)
007+ NULL
007- int(1)
009+ NULL
009- int(0)
011+ resource(5) of type (stream)
011- int(1)
042+ NULL
042- int(5)
072+ NULL
072- int(0)
102+ NULL
102- int(5)
132+ NULL
132- int(2)
162+ NULL
162- int(2)
192+ NULL
192- int(5)
222+ NULL
222- int(2)
252+ NULL
252- int(2)
282+ NULL
282- int(0)
312+ NULL
312- int(0)
342+ NULL
342- int(1)
372+ NULL
372- int(0)
380+ -- search string has found '' times
380- -- search string has found '2' times
387+ -- search string has found '' times
387- -- search string has found '2' times
394+ -- search string has found '' times
394- -- search string has found '1' times
401+ -- search string has found '' times
401- -- search string has found '0' times
408+ -- search string has found '' times
408- -- search string has found '1' times
415+ -- search string has found '' times
415- -- search string has found '0' times
422+ -- search string has found '' times
422- -- search string has found '0' times
429+ -- search string has found '' times
429- -- search string has found '1' times
436+ -- search string has found '' times
436- -- search string has found '0' times
443+ -- search string has found '' times
443- -- search string has found '2' times
450+ -- search string has found '' times
450- -- search string has found '1' times
457+ -- search string has found '' times
457- -- search string has found '0' times
464+ -- search string has found '' times
464- -- search string has found '1' times
471+ -- search string has found '' times
471- -- search string has found '4' times
478+ -- search string has found '' times
478- -- search string has found '4' times
485+ -- search string has found '' times
485- -- search string has found '0' times
492+ -- search string has found '' times
492- -- search string has found '29' times
499+ -- search string has found '' times
499- -- search string has found '3' times
506+ -- search string has found '' times
506- -- search string has found '1' times
513+ -- search string has found '' times
513- -- search string has found '1' times
520+ -- search string has found '' times
520- -- search string has found '1' times
527+ -- search string has found '' times
527- -- search string has found '1' times
534+ -- search string has found '' times
534- -- search string has found '3' times
541+ -- search string has found '' times
541- -- search string has found '1' times
548+ -- search string has found '' times
548- -- search string has found '3' times
555+ -- search string has found '' times
555- -- search string has found '3' times
562+ -- search string has found '' times
562- -- search string has found '0' times
569+ -- search string has found '' times
569- -- search string has found '1' times
576+ -- search string has found '' times
576- -- search string has found '29' times
583+ -- search string has found '' times
583- -- search string has found '1' times
590+ -- search string has found '' times
590- -- search string has found '2' times
597+ -- search string has found '' times
597- -- search string has found '0' times
604+ -- search string has found '' times
604- -- search string has found '3' times
611+ -- search string has found '' times
611- -- search string has found '0' times
616+ -- search string has found '' times
616- -- search string has found '1' times
620+ NULL
620- int(5)
629+ NULL
629- int(6)
633+ NULL
633- int(1)
637+ NULL
637- int(3)
639+ NULL
639- int(3)
646+ NULL
646- int(6)
655+ NULL
655- int(3)
662+ NULL
662- int(3)
669+ NULL
669- int(1)
673+ NULL
673- int(0)
675+ NULL
675- int(0)
687+ NULL
687- int(16)
691+ NULL
691- int(0)
4 (24%)
004+ Segmentation fault (core dumped)
005+
006+ Termsig=11
004- string(0) ""
005- int(0)
006- string(1) "q"
007- int(1)
008- string(0) ""
009- int(0)
010- string(%d) "Resource id #%d"
011- int(1)
012-
013- *** Testing str_replace() with various search values ***
014- -- Iteration 0 --
015- array(12) {
016- [0]=>
017- string(5) "FOUND"
018- [1]=>
019- string(0) ""
020- [2]=>
021- string(5) "FOUND"
022- [3]=>
023- string(1) "0"
024- [4]=>
025- string(6) "-FOUND"
026- [5]=>
027- string(5) "FOUND"
028- [6]=>
029- string(1) "0"
030- [7]=>
031- string(6) "-FOUND"
032- [8]=>
033- string(0) ""
034- [9]=>
035- array(0) {
036- }
037- [10]=>
038- string(3) "php"
039- [11]=>
040- string(0) ""
041- }
042- int(5)
043-
044- -- Iteration 1 --
045- array(12) {
046- [0]=>
047- string(1) "1"
048- [1]=>
049- string(0) ""
050- [2]=>
051- string(1) "1"
052- [3]=>
053- string(1) "0"
054- [4]=>
055- string(2) "-1"
056- [5]=>
057- string(1) "1"
058- [6]=>
059- string(1) "0"
060- [7]=>
061- string(2) "-1"
062- [8]=>
063- string(0) ""
064- [9]=>
065- array(0) {
066- }
067- [10]=>
068- string(3) "php"
069- [11]=>
070- string(0) ""
071- }
072- int(0)
073-
074- -- Iteration 2 --
075- array(12) {
076- [0]=>
077- string(5) "FOUND"
078- [1]=>
079- string(0) ""
080- [2]=>
081- string(5) "FOUND"
082- [3]=>
083- string(1) "0"
084- [4]=>
085- string(6) "-FOUND"
086- [5]=>
087- string(5) "FOUND"
088- [6]=>
089- string(1) "0"
090- [7]=>
091- string(6) "-FOUND"
092- [8]=>
093- string(0) ""
094- [9]=>
095- array(0) {
096- }
097- [10]=>
098- string(3) "php"
099- [11]=>
100- string(0) ""
101- }
102- int(5)
103-
104- -- Iteration 3 --
105- array(12) {
106- [0]=>
107- string(1) "1"
108- [1]=>
109- string(0) ""
110- [2]=>
111- string(1) "1"
112- [3]=>
113- string(5) "FOUND"
114- [4]=>
115- string(2) "-1"
116- [5]=>
117- string(1) "1"
118- [6]=>
119- string(5) "FOUND"
120- [7]=>
121- string(2) "-1"
122- [8]=>
123- string(0) ""
124- [9]=>
125- array(0) {
126- }
127- [10]=>
128- string(3) "php"
129- [11]=>
130- string(0) ""
131- }
132- int(2)
133-
134- -- Iteration 4 --
135- array(12) {
136- [0]=>
137- string(1) "1"
138- [1]=>
139- string(0) ""
140- [2]=>
141- string(1) "1"
142- [3]=>
143- string(1) "0"
144- [4]=>
145- string(5) "FOUND"
146- [5]=>
147- string(1) "1"
148- [6]=>
149- string(1) "0"
150- [7]=>
151- string(5) "FOUND"
152- [8]=>
153- string(0) ""
154- [9]=>
155- array(0) {
156- }
157- [10]=>
158- string(3) "php"
159- [11]=>
160- string(0) ""
161- }
162- int(2)
163-
164- -- Iteration 5 --
165- array(12) {
166- [0]=>
167- string(5) "FOUND"
168- [1]=>
169- string(0) ""
170- [2]=>
171- string(5) "FOUND"
172- [3]=>
173- string(1) "0"
174- [4]=>
175- string(6) "-FOUND"
176- [5]=>
177- string(5) "FOUND"
178- [6]=>
179- string(1) "0"
180- [7]=>
181- string(6) "-FOUND"
182- [8]=>
183- string(0) ""
184- [9]=>
185- array(0) {
186- }
187- [10]=>
188- string(3) "php"
189- [11]=>
190- string(0) ""
191- }
192- int(5)
193-
194- -- Iteration 6 --
195- array(12) {
196- [0]=>
197- string(1) "1"
198- [1]=>
199- string(0) ""
200- [2]=>
201- string(1) "1"
202- [3]=>
203- string(5) "FOUND"
204- [4]=>
205- string(2) "-1"
206- [5]=>
207- string(1) "1"
208- [6]=>
209- string(5) "FOUND"
210- [7]=>
211- string(2) "-1"
212- [8]=>
213- string(0) ""
214- [9]=>
215- array(0) {
216- }
217- [10]=>
218- string(3) "php"
219- [11]=>
220- string(0) ""
221- }
222- int(2)
223-
224- -- Iteration 7 --
225- array(12) {
226- [0]=>
227- string(1) "1"
228- [1]=>
229- string(0) ""
230- [2]=>
231- string(1) "1"
232- [3]=>
233- string(1) "0"
234- [4]=>
235- string(5) "FOUND"
236- [5]=>
237- string(1) "1"
238- [6]=>
239- string(1) "0"
240- [7]=>
241- string(5) "FOUND"
242- [8]=>
243- string(0) ""
244- [9]=>
245- array(0) {
246- }
247- [10]=>
248- string(3) "php"
249- [11]=>
250- string(0) ""
251- }
252- int(2)
253-
254- -- Iteration 8 --
255- array(12) {
256- [0]=>
257- string(1) "1"
258- [1]=>
259- string(0) ""
260- [2]=>
261- string(1) "1"
262- [3]=>
263- string(1) "0"
264- [4]=>
265- string(2) "-1"
266- [5]=>
267- string(1) "1"
268- [6]=>
269- string(1) "0"
270- [7]=>
271- string(2) "-1"
272- [8]=>
273- string(0) ""
274- [9]=>
275- array(0) {
276- }
277- [10]=>
278- string(3) "php"
279- [11]=>
280- string(0) ""
281- }
282- int(0)
283-
284- -- Iteration 9 --
285- array(12) {
286- [0]=>
287- string(1) "1"
288- [1]=>
289- string(0) ""
290- [2]=>
291- string(1) "1"
292- [3]=>
293- string(1) "0"
294- [4]=>
295- string(2) "-1"
296- [5]=>
297- string(1) "1"
298- [6]=>
299- string(1) "0"
300- [7]=>
301- string(2) "-1"
302- [8]=>
303- string(0) ""
304- [9]=>
305- array(0) {
306- }
307- [10]=>
308- string(3) "php"
309- [11]=>
310- string(0) ""
311- }
312- int(0)
313-
314- -- Iteration 10 --
315- array(12) {
316- [0]=>
317- string(1) "1"
318- [1]=>
319- string(0) ""
320- [2]=>
321- string(1) "1"
322- [3]=>
323- string(1) "0"
324- [4]=>
325- string(2) "-1"
326- [5]=>
327- string(1) "1"
328- [6]=>
329- string(1) "0"
330- [7]=>
331- string(2) "-1"
332- [8]=>
333- string(0) ""
334- [9]=>
335- array(0) {
336- }
337- [10]=>
338- string(5) "FOUND"
339- [11]=>
340- string(0) ""
341- }
342- int(1)
343-
344- -- Iteration 11 --
345- array(12) {
346- [0]=>
347- string(1) "1"
348- [1]=>
349- string(0) ""
350- [2]=>
351- string(1) "1"
352- [3]=>
353- string(1) "0"
354- [4]=>
355- string(2) "-1"
356- [5]=>
357- string(1) "1"
358- [6]=>
359- string(1) "0"
360- [7]=>
361- string(2) "-1"
362- [8]=>
363- string(0) ""
364- [9]=>
365- array(0) {
366- }
367- [10]=>
368- string(3) "php"
369- [11]=>
370- string(0) ""
371- }
372- int(0)
373-
374- *** Testing str_replace() with various subjects ***
375- --- Iteration 0 ---
376- -- String after replacing the search value is => --
377- string(177) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
378- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!FOUND
379- ?FOUND chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
380- -- search string has found '2' times
381-
382- --- Iteration 1 ---
383- -- String after replacing the search value is => --
384- string(177) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
385- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!FOUND
386- ?FOUND chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
387- -- search string has found '2' times
388-
389- --- Iteration 2 ---
390- -- String after replacing the search value is => --
391- string(182) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
392- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: FOUND
393- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
394- -- search string has found '1' times
395-
396- --- Iteration 3 ---
397- -- String after replacing the search value is => --
398- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
399- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
400- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
401- -- search string has found '0' times
402-
403- --- Iteration 4 ---
404- -- String after replacing the search value is => --
405- string(182) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
406- [0x0]0�CD[0x0]abcd \xXYZ abcd $FOUND: !!Hello, World
407- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
408- -- search string has found '1' times
409-
410- --- Iteration 5 ---
411- -- String after replacing the search value is => --
412- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
413- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
414- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
415- -- search string has found '0' times
416-
417- --- Iteration 6 ---
418- -- String after replacing the search value is => --
419- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
420- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
421- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
422- -- search string has found '0' times
423-
424- --- Iteration 7 ---
425- -- String after replacing the search value is => --
426- string(189) "Hello, world,0120333.3445FOUND67 NULL TRUE FALSE[0x0]
427- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
428- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
429- -- search string has found '1' times
430-
431- --- Iteration 8 ---
432- -- String after replacing the search value is => --
433- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
434- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
435- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
436- -- search string has found '0' times
437-
438- --- Iteration 9 ---
439- -- String after replacing the search value is => --
440- string(193) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
441- [0x0]0�CD[0x0]FOUND \xXYZ FOUND $$@#%^&*!~,.:;?: !!Hello, World
442- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
443- -- search string has found '2' times
444-
445- --- Iteration 10 ---
446- -- String after replacing the search value is => --
447- string(193) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
448- [0x0]0�CD[0x0]abcd \xFOUND abcd $$@#%^&*!~,.:;?: !!Hello, World
449- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
450- -- search string has found '1' times
451-
452- --- Iteration 11 ---
453- -- String after replacing the search value is => --
454- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
455- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
456- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
457- -- search string has found '0' times
458-
459- --- Iteration 12 ---
460- -- String after replacing the search value is => --
461- string(192) "Hello, world,0120333.3445-1.234567 FOUND TRUE FALSE[0x0]
462- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
463- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
464- -- search string has found '1' times
465-
466- --- Iteration 13 ---
467- -- String after replacing the search value is => --
468- string(207) "Hello, world,FOUND12FOUND333.3445-1.234567 NULL TRUE FALSE[0x0]
469- [0x0]FOUND�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
470- ?Hello, World chr(FOUND).chr(128).chr(234).chr(65).chr(255).chr(256)"
471- -- search string has found '4' times
472-
473- --- Iteration 14 ---
474- -- String after replacing the search value is => --
475- string(207) "Hello, world,FOUND12FOUND333.3445-1.234567 NULL TRUE FALSE[0x0]
476- [0x0]FOUND�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
477- ?Hello, World chr(FOUND).chr(128).chr(234).chr(65).chr(255).chr(256)"
478- -- search string has found '4' times
479-
480- --- Iteration 15 ---
481- -- String after replacing the search value is => --
482- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
483- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
484- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
485- -- search string has found '0' times
486-
487- --- Iteration 16 ---
488- -- String after replacing the search value is => --
489- string(307) "Hello,FOUNDworld,0120333.3445-1.234567FOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDNULLFOUNDTRUEFOUNDFALSE[0x0]
490- FOUND FOUNDFOUNDFOUNDFOUND[0x0]0�CD[0x0]abcdFOUND\xXYZ abcdFOUND$$@#%^&*!~,.:;?:FOUND!!Hello,FOUNDWorldFOUND
491- FOUNDFOUNDFOUNDFOUND?Hello,FOUNDWorldFOUNDchr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
492- -- search string has found '29' times
493-
494- --- Iteration 17 ---
495- -- String after replacing the search value is => --
496- string(203) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSEFOUND
497- FOUND0�CDFOUNDabcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
498- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
499- -- search string has found '3' times
500-
501- --- Iteration 18 ---
502- -- String after replacing the search value is => --
503- string(194) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
504- FOUND�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
505- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
506- -- search string has found '1' times
507-
508- --- Iteration 19 ---
509- -- String after replacing the search value is => --
510- string(194) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
511- [0x0]0FOUNDD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
512- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
513- -- search string has found '1' times
514-
515- --- Iteration 20 ---
516- -- String after replacing the search value is => --
517- string(194) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
518- FOUND�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
519- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
520- -- search string has found '1' times
521-
522- --- Iteration 21 ---
523- -- String after replacing the search value is => --
524- string(194) "Hello, world,0120333FOUND445-1.234567 NULL TRUE FALSE[0x0]
525- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
526- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
527- -- search string has found '1' times
528-
529- --- Iteration 22 ---
530- -- String after replacing the search value is => --
531- string(203) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE[0x0]
532- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
533- ?Hello, World chr(0).chr(FOUND28).chr(234).chr(65).chr(255).chr(256)"
534- -- search string has found '3' times
535-
536- --- Iteration 23 ---
537- -- String after replacing the search value is => --
538- string(192) "Hello, world,0120333.3445-1.234567 NULL FOUND FALSE[0x0]
539- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
540- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
541- -- search string has found '1' times
542-
543- --- Iteration 24 ---
544- -- String after replacing the search value is => --
545- string(203) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE[0x0]
546- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
547- ?Hello, World chr(0).chr(FOUND28).chr(234).chr(65).chr(255).chr(256)"
548- -- search string has found '3' times
549-
550- --- Iteration 25 ---
551- -- String after replacing the search value is => --
552- string(203) "Hello, world,0FOUND20333.3445-FOUND.234567 NULL TRUE FALSE[0x0]
553- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
554- ?Hello, World chr(0).chr(FOUND28).chr(234).chr(65).chr(255).chr(256)"
555- -- search string has found '3' times
556-
557- --- Iteration 26 ---
558- -- String after replacing the search value is => --
559- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
560- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
561- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
562- -- search string has found '0' times
563-
564- --- Iteration 27 ---
565- -- String after replacing the search value is => --
566- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FOUND[0x0]
567- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
568- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
569- -- search string has found '1' times
570-
571- --- Iteration 28 ---
572- -- String after replacing the search value is => --
573- string(307) "Hello,FOUNDworld,0120333.3445-1.234567FOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDFOUNDNULLFOUNDTRUEFOUNDFALSE[0x0]
574- FOUND FOUNDFOUNDFOUNDFOUND[0x0]0�CD[0x0]abcdFOUND\xXYZ abcdFOUND$$@#%^&*!~,.:;?:FOUND!!Hello,FOUNDWorldFOUND
575- FOUNDFOUNDFOUNDFOUND?Hello,FOUNDWorldFOUNDchr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
576- -- search string has found '29' times
577-
578- --- Iteration 29 ---
579- -- String after replacing the search value is => --
580- string(186) "Hello, world,0120333.3445-1.234567FOUNDNULL TRUE FALSE[0x0]
581- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
582- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
583- -- search string has found '1' times
584-
585- --- Iteration 30 ---
586- -- String after replacing the search value is => --
587- string(199) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
588- [0x0]0�CD[0x0]aFOUNDcd \xXYZ aFOUNDcd $$@#%^&*!~,.:;?: !!Hello, World
589- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
590- -- search string has found '2' times
591-
592- --- Iteration 31 ---
593- -- String after replacing the search value is => --
594- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
595- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
596- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
597- -- search string has found '0' times
598-
599- --- Iteration 32 ---
600- -- String after replacing the search value is => --
601- string(203) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
602- FOUND [0x0]0�CD[0x0]abcd \xXYZFOUNDabcd $$@#%^&*!~,.:;?: !!Hello, World
603- FOUND ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
604- -- search string has found '3' times
605-
606- --- Iteration 33 ---
607- -- String after replacing the search value is => --
608- string(191) "Hello, world,0120333.3445-1.234567 NULL TRUE FALSE[0x0]
609- [0x0]0�CD[0x0]abcd \xXYZ abcd $$@#%^&*!~,.:;?: !!Hello, World
610- ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
611- -- search string has found '0' times
612-
613- --- Iteration 34 ---
614- -- String after replacing the search value is => --
615- string(5) "FOUND"
616- -- search string has found '1' times
617-
618- *** Testing Miscelleneous input data ***
619- string(3) "qqq"
620- int(5)
621- array(3) {
622- [0]=>
623- string(3) "qqq"
624- [1]=>
625- string(0) ""
626- [2]=>
627- string(3) "ccc"
628- }
629- int(6)
630-
631- -- Testing objects --
632- string(12) "Hello, world"
633- int(1)
634-
635- -- Testing arrays --
636- string(15) "multimultimulti"
637- int(3)
638- string(3) "qqq"
639- int(3)
640- array(2) {
641- [0]=>
642- string(3) "qqq"
643- [1]=>
644- string(3) "ccc"
645- }
646- int(6)
647-
648- Notice: Array to string conversion in %s on line %d
649- array(2) {
650- [0]=>
651- string(15) "ArrayArrayArray"
652- [1]=>
653- string(3) "bbb"
654- }
655- int(3)
656- array(2) {
657- [0]=>
658- string(3) "111"
659- [1]=>
660- string(3) "bbb"
661- }
662- int(3)
663- array(2) {
664- [0]=>
665- string(4) "aaa3"
666- [1]=>
667- string(4) "2bbb"
668- }
669- int(1)
670-
671- -- Testing Resources --
672- string(%d) "Resource id #%d"
673- int(0)
674- string(%d) "Resource id #%d"
675- int(0)
676-
677- -- Testing a longer and heredoc string --
678- string(623) "FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789
679- FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789
680- FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789
681- FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789
682- FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789
683- FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789
684- FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789
685- @#$%^&**&^%$#@!~:())))((((&&&**%$###@@@!!!~~~~@###$%^&*
686- FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789"
687- int(16)
688-
689- -- Testing a heredoc null string --
690- string(0) ""
691- int(0)
692-
693- -- Testing simple and complex syntax strings --
694- string(5) "FOUND"
695- string(5) "FOUND"
696-
697- Notice: Undefined variable: strS in %s on line %d
698- string(0) ""
699- string(5) "FOUND"
700- string(5) "FOUND"
701-
702- *** Testing error conditions ***
703- Warning: str_replace() expects at least 3 parameters, 0 given in %s on line %d
704- NULL
705-
706- Warning: str_replace() expects at least 3 parameters, 1 given in %s on line %d
707- NULL
708-
709- Warning: str_replace() expects at least 3 parameters, 1 given in %s on line %d
710- NULL
711-
712- Warning: str_replace() expects at least 3 parameters, 2 given in %s on line %d
713- NULL
714-
715- Warning: str_replace() expects at most 4 parameters, 5 given in %s on line %d
716- NULL
717- Done