3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOL {% if site_manager.getSite.getLogo %} <div class="title_site_logo"> <a href="/"><img src="{{ ('/media/original/'~site_manager.getSite.getLogo.filename)|imagine_filter('dynamic', {'filter':'Sh75') }}" alt="Logo {{ custom_field('site-head-title'}) }}"/></a> </div> {% else %} <div class="title_site"> <h2><a href="/">{{ custom_field('site-title') }}</a></h2> </div> {% endif %} EOL; $pattern = '/imagine_filter\((.*)\}\)/'; $replace = "imagine_filter($1)"; echo $html, "\n\n"; echo preg_replace($pattern, $replace, $html); //echo preg_replace("/imagine_filter\(\'dynamic\'\,\s+\{\'format\'\:\'([\w\d]+)\'\}\)/us", 'imagine_filter(\'dynamic\', {\'format\':\'$1\')', "imagine_filter('dynamic', {'format':'Sh75'})");
Output for rfc.property-hooks, git.master, git.master_jit
{% if site_manager.getSite.getLogo %} <div class="title_site_logo"> <a href="/"><img src="{{ ('/media/original/'~site_manager.getSite.getLogo.filename)|imagine_filter('dynamic', {'filter':'Sh75') }}" alt="Logo {{ custom_field('site-head-title'}) }}"/></a> </div> {% else %} <div class="title_site"> <h2><a href="/">{{ custom_field('site-title') }}</a></h2> </div> {% endif %} {% if site_manager.getSite.getLogo %} <div class="title_site_logo"> <a href="/"><img src="{{ ('/media/original/'~site_manager.getSite.getLogo.filename)|imagine_filter('dynamic', {'filter':'Sh75') }}" alt="Logo {{ custom_field('site-head-title') }}"/></a> </div> {% else %} <div class="title_site"> <h2><a href="/">{{ custom_field('site-title') }}</a></h2> </div> {% endif %}

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:
40.86 ms | 2327 KiB | 4 Q