3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "WALIOFANYA MTIHANI : 70 WASTANI WA SHULE : 138.2571 NAFASI YA SHULE KIWILAYA: 25 kati ya 125 NAFASI YA SHULE KIMKOA : 117 kati ya 571 NAFASI YA SHULE KITAIFA : 1249 kati ya 15656 "; preg_match_all('!\d+!', $string, $matches); print_r($matches);
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] => 70 [1] => 138 [2] => 2571 [3] => 25 [4] => 125 [5] => 117 [6] => 571 [7] => 1249 [8] => 15656 ) )