3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = " <p>1</p> <p>2</p> <p>3</p> <p>4</p> <p>5</p> <p>6</p> <p>7</p> <p>8</p> <p>9</p> <p>10</p> <p>11</p> <p>12</p> <p>13</p> <p>14</p> <p>15</p> <p>16</p> <p>17</p> "; echo preg_replace('~(?:.*?</p>){5}\K~s', "\n [next]", $string);
Output for git.master_jit, git.master, rfc.property-hooks
<p>1</p> <p>2</p> <p>3</p> <p>4</p> <p>5</p> [next] <p>6</p> <p>7</p> <p>8</p> <p>9</p> <p>10</p> [next] <p>11</p> <p>12</p> <p>13</p> <p>14</p> <p>15</p> [next] <p>16</p> <p>17</p>

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:
30.37 ms | 406 KiB | 5 Q