3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = array( 'ABC 11.0x17 / 1x4 2x4 XYZ', 'ABC 12.1x18 / 2x4 3x4 XYZ', 'ABC DEF 12.1x19 / 3x4 4x4 XYZ', 'ABC DEF GHI A1 13x20 / 3x4 4x4 XYZ' ); foreach ($strings as $str) { $text = explode('x', $str, 2); $text = explode(' ', $text[1]); echo "$text[0]\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
17 18 19 20

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:
149.17 ms | 405 KiB | 5 Q