3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fox( $a) { return $a . 'fox!'; } function dog( $b) { return $b . 'dog!'; } $a = 'A'; $b = 'B'; $string = 'The quick brown {{fox($a);}} jumped over the lazy {{dog($b);}}.'; $regex = '/{{([^}]+)+}}/e'; $result = preg_match_all( $regex, $string, $matches); var_dump( $matches);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/qSVdl on line 8 NULL

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:
38.65 ms | 401 KiB | 8 Q