3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value = 'a, modern php framework.= is a must 1234'; $output = preg_replace('/[^a-zA-z\d]/', '_', $value); $put = preg_replace('/_*/', '_', $output); echo $put;
Output for 7.0.20
_a__m_o_d_e_r_n__p_h_p__f_r_a_m_e_w_o_r_k__i_s__a__m_u_s_t__1_2_3_4_