3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $app_filename = "AntivirusSecurity_02_cb-508164-ce_ac8a0e5e-35f8-4c7b-b591-7e28cab94b4e.apk"; $app_filename = "AntivirusSecurity_02_[508164]_ac8a0e5e-35f8-4c7b-b591-7e28cab94b4e.apk"; $click_id_fence_beginning = '\['; $click_id_fence_end = '\]'; preg_match_all("^{$click_id_fence_beginning}(.*?){$click_id_fence_end}^",$app_filename,$fields, PREG_PATTERN_ORDER); print_r($fields);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [0] => [508164] ) [1] => Array ( [0] => 508164 ) )