3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = '05% off'. '<br/>'; $string2 = '03% Off'. '<br/>'; $string3 = '50% OFF'. '<br/>'; $string4 = '50% oFf'. '<br/>'; $firstsub = substr( $string1, 4 ); $secondsub = substr( $string2, 4 ); $threesub = substr( $string3, 4 ); $foursub = substr( $string3, 4 ); var_dump($firstsub, $secondsub, $threesub, $foursub); ?>
Output for git.master, git.master_jit, rfc.property-hooks
string(8) "off<br/>" string(8) "Off<br/>" string(8) "OFF<br/>" string(8) "OFF<br/>"

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:
42.37 ms | 401 KiB | 8 Q