3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "Длительность звонка: 4 сек."; $b = preg_match("/\d+/", $a,$c); var_dump([$b,$c]);
based on ths9f
Output for 5.6.38 - 7.3.0rc3
array(2) { [0]=> int(1) [1]=> array(1) { [0]=> string(1) "4" } }