3v4l.org

run code in 500+ PHP versions simultaneously
<?php $input = 'Yth. ErzaPay.com (DS008206). Sal:465.670, Dlm proses:0. Pemakaian hr ini:126.885 Komisi:0 #*IDN1,IDN3 Open harga naik'; echo preg_match('~Sal:\K[^,]+~', $input, $out) ? $out[0] : 'no match'; echo "\n---\n"; echo preg_replace('~^.*?Sal:|,.*?$~', '', $input); echo "\n---\n"; echo strstr(explode('Sal:', $input, 2)[1], ',', true); echo "\n---\n"; echo explode(',', explode('Sal:', $input, 2)[1], 2)[0]; echo "\n---\n"; if (($startPos = strpos($input, 'Sal:')) !== false && ($endPos = strpos($input, ',', $startPos)) !== false) { $substrPos = $startPos + 4; $substrLen = $endPos - $substrPos; echo substr($input, $substrPos, $substrLen); }
Output for git.master, git.master_jit, rfc.property-hooks
465.670 --- 465.670 --- 465.670 --- 465.670 --- 465.670

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:
31.82 ms | 1453 KiB | 4 Q