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."; $pat = "/#(\w+)/"; if ( preg_match_all($pat,$str,$matches)) { $popped = array_pop($matches); list( $alpha, $beta, $gamma) = $popped; echo "The IDs are as follows:\n\n$alpha\n$beta\n$gamma\n"; }

preferences:
30.74 ms | 405 KiB | 5 Q