3v4l.org

run code in 300+ PHP versions simultaneously
<?php $classes = str_repeat('dum-class ', 100000); $text = '<div><p class="' . $classes . '">Not a url.</p></div>'; $pcre_backtrack_limit = ini_get('pcre.backtrack_limit'); ini_set('pcre.backtrack_limit', 1); $chunks = preg_split('/(<.+?>)/is', $text, -1, PREG_SPLIT_DELIM_CAPTURE); $preg_last_error = preg_last_error(); var_dump($preg_last_error); var_dump($preg_last_error === PREG_BACKTRACK_LIMIT_ERROR); ini_set('pcre.backtrack_limit', $pcre_backtrack_limit);
Output for git.master, git.master_jit, rfc.property-hooks
int(2) bool(true)

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