3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "http://www.kijiji.ca/b-autos-camions/grand-montreal/suv+vgm-bmw-x5-2001__2009/c174l80002a138a54a1000054a68?sort=priceAsc&price=2000.00__40000.00&kilometres=10000__110000"; preg_match( '/\[#(\d+)\]/', '[#1234] Subject', $matches); echo $matches[1]; // 1234
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.7
1234
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/D7Aoe on line 4
Process exited with code 255.