3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = '..hel...lo....wor.......ld.......'; echo 'Original: ', $filename, "\n"; $filename = preg_replace( '/\.{2,}/', '.', $filename ); echo 'After preg_replace(): ', $filename, "\n"; $filename = rtrim( $filename, '.' ); echo 'After rtrim(): ', $filename, "\n"; $filename .= '.png'; echo 'Final: ', $filename;
Output for git.master, git.master_jit, rfc.property-hooks
Original: ..hel...lo....wor.......ld....... After preg_replace(): .hel.lo.wor.ld. After rtrim(): .hel.lo.wor.ld Final: .hel.lo.wor.ld.png

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
114.59 ms | 405 KiB | 5 Q