3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Two 9-dram clear styrene tubes with snap-on caps, 1 x 2-3/4? I.D. (25.2 x 68mm), are supplied as containers. Additional or replacement tubes #8909 are available. As a safety precaution, BioQuip recommends using the #1135Y HEPA filter with this aspirator. Also see #1135X aspirator syringe bulb. It allows users to aspirate specimens without inhaling particulate matter."; $ids=[]; $a = explode("#",$str); array_shift($a); $ids = array_map(function($e) { return explode(" ",$e)[0]; },$a); print_r($ids);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Array ( [0] => 8909 [1] => 1135Y [2] => 1135X )

preferences:
105.98 ms | 404 KiB | 174 Q