3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'language'=>'en' , 'script' =>'Hans' , 'region' =>'CN', 'extlang0' => 'a', 'extlang1' => 'b', 'extlang2' => 'c', 'extlang3' => 'd' ); echo locale_compose( $arr );
Output for 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.25, 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_Hans_CN

preferences:
267.75 ms | 460 KiB | 5 Q