3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!-- <ssiadmin phpsetvar="fadeImage[0]['image']" src="/images/1background.jpg" name="Fade Image 1" type="image" dir="images"><?php $fadeImage[0]['image'] = '/images/1background.jpg'; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['line1']" text="Line 1 text" name="Fade Image 1 Line 1" type="text"><?php $fadeImage[0]['line1'] = 'Line 1 text'; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['line2']" text="Line 2 text" name="Fade Image 1 Line 2" type="text"><?php $fadeImage[0]['line2'] = 'Line 2 text'; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['line3']" text="Line 3 text" name="Fade Image 1 Line 3" type="text"><?php $fadeImage[0]['line3'] = 'Line 3 text'; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['text']" text="text area text area text " name="Fade Image 1 Large text area" type="text"><?php $fadeImage[0]['text'] = 'text area text area text '; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['link']" text="#" name="Fade Image 1 Link" type="text"><?php $fadeImage[0]['link'] = '#'; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['image']" name="Fade Image 2" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['line1']" text="Line 1 text 2" name="Fade Image 2 Line 1" type="text"><?php $fadeImage[1]['line1'] = 'Line 1 text 2'; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['line2']" text="line 2 test 2" name="Fade Image 2 Line 2" type="text"><?php $fadeImage[1]['line2'] = 'line 2 test 2'; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['line3']" text="line 3 text 2" name="Fade Image 2 Line 3" type="text"><?php $fadeImage[1]['line3'] = 'line 3 text 2'; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['text']" text="text area 2 text area 2" name="Fade Image 2 Large text area" type="text"><?php $fadeImage[1]['text'] = 'text area 2 text area 2'; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['image']" src="/images/4background.jpg" name="Fade Image 3" type="image" dir="images"><?php $fadeImage[2]['image'] = '/images/4background.jpg'; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['line1']" name="Fade Image 3 Line 1" type="text"><?php $fadeImage[2]['line1'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['line2']" name="Fade Image 3 Line 2" type="text"><?php $fadeImage[2]['line2'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['line3']" name="Fade Image 3 Line 3" type="text"><?php $fadeImage[2]['line3'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['text']" name="Fade Image 3 Large text area" type="text"><?php $fadeImage[2]['text'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['image']" name="Fade Image 4" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['line1']" name="Fade Image 4 Line 1" type="text"><?php $fadeImage[3]['line1'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['line2']" name="Fade Image 4 Line 2" type="text"><?php $fadeImage[3]['line2'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['line3']" name="Fade Image 4 Line 3" type="text"><?php $fadeImage[3]['line3'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['text']" name="Fade Image 4 Large text area" type="text"><?php $fadeImage[3]['text'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['image']" name="Fade Image 5" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['line1']" name="Fade Image 5 Line 1" type="text"><?php $fadeImage[4]['line1'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['line2']" name="Fade Image 5 Line 2" type="text"><?php $fadeImage[4]['line2'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['line3']" name="Fade Image 5 Line 3" type="text"><?php $fadeImage[4]['line3'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['text']" name="Fade Image 5 Large text area" type="text"><?php $fadeImage[4]['text'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['image']" name="Fade Image 6" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['line1']" name="Fade Image 6 Line 1" type="text"><?php $fadeImage[5]['line1'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['line2']" name="Fade Image 6 Line 2" type="text"><?php $fadeImage[5]['line2'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['line3']" name="Fade Image 6 Line 3" type="text"><?php $fadeImage[5]['line3'] = ''; ?></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['text']" name="Fade Image 6 Large text area" type="text"><?php $fadeImage[5]['text'] = ''; ?></ssiadmin> --> <?php $i = 0; $j = 0; foreach($fadeImage as $image) { if($fadeImage[$i][image] != "") { ?> images['image'][<?php echo $j; ?>]="<?php echo $fadeImage[$i]['image']; ?>"; <?php echo "\n"; ?> images['line1'][<?php echo $j; ?>]="<?php echo $fadeImage[$i]['line1']; ?>"; <?php echo "\n"; ?> images['line2'][<?php echo $j; ?>]="<?php echo $fadeImage[$i]['line2']; ?>"; <?php echo "\n"; ?> images['line3'][<?php echo $j; ?>]="<?php echo $fadeImage[$i]['line3']; ?>"; <?php echo "\n"; ?> images['text' ][<?php echo $j; ?>]= "<?php echo $fadeImage[$i]['text']; ?>"; <?php echo "\n"; $j++; } else { } $i++; } ?>
based on RdqD9
Output for 5.3.0 - 7.1.0
<!-- <ssiadmin phpsetvar="fadeImage[0]['image']" src="/images/1background.jpg" name="Fade Image 1" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['line1']" text="Line 1 text" name="Fade Image 1 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['line2']" text="Line 2 text" name="Fade Image 1 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['line3']" text="Line 3 text" name="Fade Image 1 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['text']" text="text area text area text " name="Fade Image 1 Large text area" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['link']" text="#" name="Fade Image 1 Link" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['image']" name="Fade Image 2" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['line1']" text="Line 1 text 2" name="Fade Image 2 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['line2']" text="line 2 test 2" name="Fade Image 2 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['line3']" text="line 3 text 2" name="Fade Image 2 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['text']" text="text area 2 text area 2" name="Fade Image 2 Large text area" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['image']" src="/images/4background.jpg" name="Fade Image 3" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['line1']" name="Fade Image 3 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['line2']" name="Fade Image 3 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['line3']" name="Fade Image 3 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['text']" name="Fade Image 3 Large text area" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['image']" name="Fade Image 4" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['line1']" name="Fade Image 4 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['line2']" name="Fade Image 4 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['line3']" name="Fade Image 4 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['text']" name="Fade Image 4 Large text area" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['image']" name="Fade Image 5" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['line1']" name="Fade Image 5 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['line2']" name="Fade Image 5 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['line3']" name="Fade Image 5 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['text']" name="Fade Image 5 Large text area" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['image']" name="Fade Image 6" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['line1']" name="Fade Image 6 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['line2']" name="Fade Image 6 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['line3']" name="Fade Image 6 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['text']" name="Fade Image 6 Large text area" type="text"></ssiadmin> --> Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 images['image'][0]="/images/1background.jpg"; images['line1'][0]="Line 1 text"; images['line2'][0]="Line 2 text"; images['line3'][0]="Line 3 text"; images['text' ][0]= "text area text area text "; Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 Notice: Undefined index: image in /in/WGQiK on line 45 Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 images['image'][1]="/images/4background.jpg"; images['line1'][1]=""; images['line2'][1]=""; images['line3'][1]=""; images['text' ][1]= ""; Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 Notice: Undefined index: image in /in/WGQiK on line 45 Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 Notice: Undefined index: image in /in/WGQiK on line 45 Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 Notice: Undefined index: image in /in/WGQiK on line 45
Output for 4.3.0 - 5.2.17
<!-- <ssiadmin phpsetvar="fadeImage[0]['image']" src="/images/1background.jpg" name="Fade Image 1" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['line1']" text="Line 1 text" name="Fade Image 1 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['line2']" text="Line 2 text" name="Fade Image 1 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['line3']" text="Line 3 text" name="Fade Image 1 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['text']" text="text area text area text " name="Fade Image 1 Large text area" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[0]['link']" text="#" name="Fade Image 1 Link" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['image']" name="Fade Image 2" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['line1']" text="Line 1 text 2" name="Fade Image 2 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['line2']" text="line 2 test 2" name="Fade Image 2 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['line3']" text="line 3 text 2" name="Fade Image 2 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[1]['text']" text="text area 2 text area 2" name="Fade Image 2 Large text area" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['image']" src="/images/4background.jpg" name="Fade Image 3" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['line1']" name="Fade Image 3 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['line2']" name="Fade Image 3 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['line3']" name="Fade Image 3 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[2]['text']" name="Fade Image 3 Large text area" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['image']" name="Fade Image 4" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['line1']" name="Fade Image 4 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['line2']" name="Fade Image 4 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['line3']" name="Fade Image 4 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[3]['text']" name="Fade Image 4 Large text area" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['image']" name="Fade Image 5" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['line1']" name="Fade Image 5 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['line2']" name="Fade Image 5 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['line3']" name="Fade Image 5 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[4]['text']" name="Fade Image 5 Large text area" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['image']" name="Fade Image 6" type="image" dir="images"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['line1']" name="Fade Image 6 Line 1" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['line2']" name="Fade Image 6 Line 2" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['line3']" name="Fade Image 6 Line 3" type="text"></ssiadmin> <ssiadmin phpsetvar="fadeImage[5]['text']" name="Fade Image 6 Large text area" type="text"></ssiadmin> --> Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 images['image'][0]="/images/1background.jpg"; images['line1'][0]="Line 1 text"; images['line2'][0]="Line 2 text"; images['line3'][0]="Line 3 text"; images['text' ][0]= "text area text area text "; Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 Notice: Undefined index: image in /in/WGQiK on line 45 Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 images['image'][1]="/images/4background.jpg"; images['line1'][1]=""; images['line2'][1]=""; images['line3'][1]=""; images['text' ][1]= ""; Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 Notice: Undefined index: image in /in/WGQiK on line 45 Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 Notice: Undefined index: image in /in/WGQiK on line 45 Notice: Use of undefined constant image - assumed 'image' in /in/WGQiK on line 45 Notice: Undefined index: image in /in/WGQiK on line 45