3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "příliš žluťoučký img_9 kůn úpěl ďábelské ódy"; var_export(mb_strpos($str, 'img_')); echo "\n"; var_export(preg_match_all('/\G(?!img_\d)\X/u', $str, $m)); echo "\n"; $mbLength = preg_match_all('/\G(?!img_\d)\X/u', $str, $m); var_export(mb_strlen($str) !== $mbLength ? $mbLength : 'not found'); echo "\n"; var_export( preg_match('/\X*?(?=img_\d)/u', $str, $m) ? mb_strlen($m[0]) : 'not found' );
Output for git.master, git.master_jit, rfc.property-hooks
17 17 17 17

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