3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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( $regex, $string); var_dump( $result);
Output for 4.3.0 - 7.1.0
int(1)