3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ '141.243.1.172 [29:23:53:25] "GET /Software.html HTTP/1.0" 200 233', '[29:23:53:25] "GET /Software.html HTTP/1.0" 200 233', '"GET /Software.html HTTP/1.0" 200 233' ]; $pattern = '/(^.*?)?(\[[0-9]+:[0-9]+:[0-9]+:[0-9]+\] )?(".+?") ([0-9]+) ([0-9-]+)/'; foreach ($strings as $string) { preg_match($pattern, $string, $matches); print_r($matches); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 141.243.1.172 [29:23:53:25] "GET /Software.html HTTP/1.0" 200 233 [1] => 141.243.1.172 [2] => [29:23:53:25] [3] => "GET /Software.html HTTP/1.0" [4] => 200 [5] => 233 ) Array ( [0] => [29:23:53:25] "GET /Software.html HTTP/1.0" 200 233 [1] => [2] => [29:23:53:25] [3] => "GET /Software.html HTTP/1.0" [4] => 200 [5] => 233 ) Array ( [0] => "GET /Software.html HTTP/1.0" 200 233 [1] => [2] => [3] => "GET /Software.html HTTP/1.0" [4] => 200 [5] => 233 )

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:
150.41 ms | 407 KiB | 5 Q