3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ' input { redis { host => "192.168.2.17" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } redis { host => "192.168.1.33" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } } input { redis { host => "192.168.2.17" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } redis { host => "192.168.1.33" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } } '; preg_match_all('~\{(?:[^{}]|(?R))*\}~', $input, $sectors); print_r($sectors);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => { redis { host => "192.168.2.17" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } redis { host => "192.168.1.33" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } } [1] => { redis { host => "192.168.2.17" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } redis { host => "192.168.1.33" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } } ) )

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.58 ms | 403 KiB | 8 Q