3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'language'=>'en' , 'script' =>'Hans' , 'region' =>'CN', 'extlang' => array('a','b','c','d','e','f') ); echo locale_compose( $arr );
Output for 7.0.0 - 7.0.23, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.29, 7.4.0 - 7.4.21, 8.0.0 - 8.0.8
en_a_b_c_d_e_f_Hans_CN

preferences:
239 ms | 459 KiB | 5 Q