3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<STR Height: 3/16 Color: Standard Red Material: Die-cut, pressure-sensitive paper Package Quantity: 1000/Pkg Reusable: Yes Size: 3/16 H x 1/4 W STR; $lines = explode("\n", $str); $combined = array_map( function($line) { return implode(' ', $line); }, array_chunk($lines, 2) ); print_r($combined);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Height: 3/16 [1] => Color: Standard Red [2] => Material: Die-cut, pressure-sensitive paper [3] => Package Quantity: 1000/Pkg [4] => Reusable: Yes [5] => Size: 3/16 H x 1/4 W )

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