3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = <<<EOF [live] programmes.static.version = "2.261.0.3" EOF; preg_match_all('#\[live\][\s]*programmes.static.version[\s]*=[\s]*"(\d+\.\d+\.\d+)(\.\d+)?"#', $data, $m); print_r($m);
based on qbgY4
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
Array ( [0] => Array ( [0] => [live] programmes.static.version = "2.261.0.3" ) [1] => Array ( [0] => 2.261.0 ) [2] => Array ( [0] => .3 ) )