3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 정규표현식 패턴별 호출 setRegx('/[ㄱ-ㅣ가-힣]/', '/[ㄱ-ㅣ가-힣]/u'); setRegx('/[ㄱ-힣]/', '/[ㄱ-힣]/u'); setRegx('/[ㄱ-ㅎ]/', '/[ㄱ-ㅎ]/u'); // 결과 출력 function setRegx($sRegx1, $sRegx2) { $aString = array('Taekyun 김', 'ㅏ', 'Taekyun', 'Taekyun 金'); echo chr(10).str_pad('', 10).' | '.str_pad($sRegx1, 11).' | '.str_pad($sRegx2, 11).' | '.str_pad('/\p{Hangul}/u', 11).chr(10); foreach ($aString as $sText) { echo str_pad($sText, 10).' | '.str_pad(preg_match($sRegx1, $sText), 11).' | '.str_pad(preg_match($sRegx2, $sText), 11).' | '.str_pad(preg_match('/\p{Hangul}/u', $sText), 11).chr(10); } }
Output for git.master, git.master_jit, rfc.property-hooks
| /[ㄱ-ㅣ가-힣]/ | /[ㄱ-ㅣ가-힣]/u | /\p{Hangul}/u Taekyun 김 | 1 | 1 | 1 ㅏ | 1 | 1 | 1 Taekyun | 0 | 0 | 0 Taekyun 金 | 1 | 0 | 0 | /[ㄱ-힣]/ | /[ㄱ-힣]/u | /\p{Hangul}/u Taekyun 김 | 1 | 1 | 1 ㅏ | 1 | 1 | 1 Taekyun | 0 | 0 | 0 Taekyun 金 | 1 | 1 | 0 | /[ㄱ-ㅎ]/ | /[ㄱ-ㅎ]/u | /\p{Hangul}/u Taekyun 김 | 1 | 0 | 1 ㅏ | 1 | 0 | 1 Taekyun | 0 | 0 | 0 Taekyun 金 | 0 | 0 | 0

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
32.46 ms | 403 KiB | 8 Q