3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var re = /(projects\[bactency\].*)/g; var str = '; =============================================================\n; Subency Makefile\n; =============================================================\n\napi = 2\ncore = 7.x\n\n; ======================= Core\n; This is mandatory !!! We have to keep these files sync between Drupency and Subency...\n; Include the definition for how to build Drupal core directly, including patches:\nincludes[] = drupal-core.make\n\n; Download the install profile and recursively build all its dependencies:\nprojects[drupency][type] = "profile"\nprojects[drupency][download][type] = "git"\nprojects[drupency][download][url] = "https://github.com/Actency/drupency.git"\nprojects[drupency][download][branch] = "develop"\n\n; ======================= Themes\n; Download actency bootstrap theme "bactency"\nprojects[bactency][type] = "theme"\nprojects[bactency][download][type] = "git"\nprojects[bactency][download][url] = "https://github.com/Actency/bactency.git"\nprojects[bactency][download][branch] = "develop"\n'; var m; while ((m = re.exec(str)) !== null) { if (m.index === re.lastIndex) { re.lastIndex++; } // View your result using the m-variable. var_dump(m); }
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected 'var' (T_VAR), expecting end of file in /in/BU8Jb on line 3
Process exited with code 255.
Output for 5.4.12 - 5.6.17
Parse error: syntax error, unexpected 'var' (T_VAR) in /in/BU8Jb on line 3
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_VAR in /in/BU8Jb on line 3
Process exited with code 255.