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); } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.10.0100.00717.91
8.3.140.0040.00418.93
8.3.130.0090.00018.75
8.3.120.0060.00320.75
8.3.110.0070.00320.94
8.3.100.0000.00824.06
8.3.90.0070.01126.77
8.3.80.0060.00317.97
8.3.70.0130.01016.88
8.3.60.0110.00416.88
8.3.50.0130.00721.28
8.3.40.0120.00318.92
8.3.30.0130.00318.85
8.3.20.0040.00420.35
8.3.10.0000.00821.78
8.3.00.0080.00319.69
8.2.250.0060.00316.80
8.2.240.0060.00318.94
8.2.230.0060.00322.58
8.2.220.0050.00337.54
8.2.210.0110.00326.77
8.2.200.0080.00316.75
8.2.190.0070.00716.76
8.2.180.0160.00316.88
8.2.170.0090.00622.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0060.00321.31
8.2.100.0130.00018.09
8.2.90.0030.00620.01
8.2.80.0080.00020.35
8.2.70.0040.00417.75
8.2.60.0000.00817.75
8.2.50.0040.00418.05
8.2.40.0000.00819.90
8.2.30.0040.00718.27
8.2.20.0000.00817.86
8.2.10.0000.00818.31
8.2.00.0050.00318.31
8.1.300.0030.00619.93
8.1.290.0000.00930.84
8.1.280.0090.00625.92
8.1.270.0070.01120.29
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.20
8.1.230.0000.01120.96
8.1.220.0000.00817.76
8.1.210.0050.00319.02
8.1.200.0030.00617.48
8.1.190.0030.00517.47
8.1.180.0060.00318.10
8.1.170.0040.00417.70
8.1.160.0040.00421.98
8.1.150.0040.00418.93
8.1.140.0030.00617.66
8.1.130.0000.00817.71
8.1.120.0070.00017.68
8.1.110.0000.01017.58
8.1.100.0030.00517.51
8.1.90.0000.00817.66
8.1.80.0000.00817.66
8.1.70.0040.00417.63
8.1.60.0000.00817.64
8.1.50.0000.00817.75
8.1.40.0050.00317.73
8.1.30.0060.00317.81
8.1.20.0040.00417.79
8.1.10.0030.00517.58
8.1.00.0080.00017.69
8.0.300.0000.00720.29
8.0.290.0040.00417.13
8.0.280.0050.00218.67
8.0.270.0000.00717.41
8.0.260.0040.00417.27
8.0.250.0000.00717.17
8.0.240.0000.00717.23
8.0.230.0070.00017.28
8.0.220.0000.00717.08
8.0.210.0070.00017.04
8.0.200.0000.00817.31
8.0.190.0030.00717.26
8.0.180.0060.00317.14
8.0.170.0030.00517.27
8.0.160.0050.00217.17
8.0.150.0000.00817.08
8.0.140.0000.00817.20
8.0.130.0050.00613.61
8.0.120.0030.00517.11
8.0.110.0070.00017.11
8.0.100.0000.00717.06
8.0.90.0030.00517.20
8.0.80.0090.00617.21
8.0.70.0050.00317.11
8.0.60.0070.00017.06
8.0.50.0040.00417.07
8.0.30.0120.01017.28
8.0.20.0120.00817.48
8.0.10.0040.00417.07
8.0.00.0110.00916.96
7.4.330.0000.00515.20
7.4.320.0000.00716.82
7.4.300.0030.00316.92
7.4.290.0040.00416.81
7.4.280.0000.00816.94
7.4.270.0000.00716.81
7.4.260.0000.00716.80
7.4.250.0030.00616.86
7.4.240.0040.00416.84
7.4.230.0030.00416.69
7.4.220.0120.00616.65
7.4.210.0090.00916.73
7.4.200.0000.00716.91
7.4.160.0050.01116.90
7.4.150.0040.01417.40
7.4.140.0080.01117.86
7.4.130.0110.00616.65
7.4.120.0110.00816.66
7.4.110.0150.00916.82
7.4.100.0030.01616.80
7.4.90.0090.00916.66
7.4.80.0100.01319.39
7.4.70.0080.00916.55
7.4.60.0170.00716.82
7.4.50.0040.00416.56
7.4.40.0040.01216.48
7.4.30.0120.00616.84
7.4.00.0030.01015.24
7.3.330.0030.00313.49
7.3.320.0000.00513.50
7.3.310.0000.00716.40
7.3.300.0030.00316.55
7.3.290.0030.00316.52
7.3.280.0160.00216.53
7.3.270.0210.01917.40
7.3.260.0110.00816.52
7.3.250.0110.00816.61
7.3.240.0080.01116.89
7.3.230.0000.01716.61
7.3.210.0120.00616.74
7.3.200.0130.00316.91
7.3.190.0150.01016.65
7.3.180.0100.01016.77
7.3.170.0060.01016.70
7.3.160.0070.01516.85
7.3.120.0070.01015.41
7.3.110.0060.01315.10
7.3.100.0060.00915.03
7.3.90.0080.00815.05
7.3.80.0100.00715.25
7.3.70.0030.00615.10
7.3.60.0070.00715.18
7.3.50.0030.01015.13
7.3.40.0030.00615.16
7.3.30.0110.00414.95
7.3.20.0080.00817.09
7.3.10.0000.01816.61
7.3.00.0100.00616.86
7.2.330.0110.00716.75
7.2.320.0100.01316.77
7.2.310.0070.01516.76
7.2.300.0000.01816.79
7.2.290.0060.01316.73
7.2.250.0030.01515.42
7.2.240.0090.00915.21
7.2.230.0070.01015.18
7.2.220.0060.01215.29
7.2.210.0070.01415.38
7.2.200.0000.00915.10
7.2.190.0030.01315.32
7.2.180.0090.00915.34
7.2.170.0140.00015.18
7.2.160.0030.01315.33
7.2.150.0030.01316.82
7.2.140.0120.00317.14
7.2.130.0070.01117.04
7.2.120.0020.01216.86
7.2.110.0070.00716.89
7.2.100.0050.00816.92
7.2.90.0080.00617.08
7.2.80.0060.00817.03
7.2.70.0070.01117.02
7.2.60.0080.00817.16
7.2.50.0090.00717.04
7.2.40.0050.01017.03
7.2.30.0050.00817.14
7.2.20.0050.00816.96
7.2.10.0020.01216.95
7.2.00.0040.00917.91
7.1.330.0070.00715.84
7.1.320.0030.00916.04
7.1.310.0060.01316.00
7.1.300.0060.00616.06
7.1.290.0070.00415.68
7.1.280.0060.00315.98
7.1.270.0140.00415.88
7.1.260.0040.00816.05
7.1.250.0120.00315.82
7.1.240.0000.01416.03
7.1.230.0100.00016.09
7.1.220.0110.00415.88
7.1.210.0090.00315.98
7.1.200.0070.00815.97
7.1.190.0070.01015.89
7.1.180.0040.01115.94
7.1.170.0040.00816.03
7.1.160.0070.00715.49
7.1.150.0040.01115.86
7.1.140.0080.00415.77
7.1.130.0030.01015.88
7.1.120.0070.00716.04
7.1.110.0040.01115.72
7.1.100.0730.01116.94
7.1.90.0740.01316.18
7.1.80.2250.01216.10
7.1.70.0470.00816.37
7.1.60.0570.01022.92
7.1.50.0480.00822.11
7.1.40.0590.01324.44
7.1.30.0620.01124.46
7.1.20.0990.00924.40
7.1.10.0520.01215.38
7.1.00.0420.03017.78
7.0.320.0080.00015.46
7.0.310.0030.01015.62
7.0.300.0100.00315.72
7.0.290.0000.01515.72
7.0.280.0040.01115.62
7.0.270.0040.00815.55
7.0.260.0030.01315.42
7.0.250.0130.00015.49
7.0.240.1140.00915.75
7.0.230.0740.00815.80
7.0.220.1060.00815.87
7.0.210.1010.01015.32
7.0.200.0630.00715.81
7.0.190.0630.00615.39
7.0.180.0770.00815.26
7.0.170.0610.00815.01
7.0.160.0640.01215.19
7.0.150.0560.00715.15
7.0.140.0890.01015.20
7.0.130.0860.01215.23
7.0.120.0780.00715.22
7.0.110.0870.00915.27
7.0.100.0710.01215.09
7.0.90.0780.03116.78
7.0.80.0740.02316.74
7.0.70.0830.02416.83
7.0.60.0630.03416.68
7.0.50.0650.02817.03
7.0.40.0660.03116.05
7.0.30.0570.03116.10
7.0.20.0550.02916.25
7.0.10.0590.01916.28
7.0.00.0520.03216.26
5.6.380.0050.00514.36
5.6.370.0100.00314.42
5.6.360.0040.00414.73
5.6.350.0050.00314.38
5.6.340.0090.00314.18
5.6.330.0070.00414.44
5.6.320.0070.00714.44
5.6.310.0070.00414.21
5.6.300.0060.03517.52
5.6.290.0120.03417.78
5.6.280.0060.05018.75
5.6.270.0130.03317.54
5.6.260.0100.04317.58
5.6.250.0100.04217.84
5.6.240.0080.04317.58
5.6.230.0040.04018.56
5.6.220.0100.04218.64
5.6.210.0070.05218.61
5.6.200.0080.05918.75
5.6.190.0100.05018.77
5.6.180.0090.04518.66
5.6.170.0030.05318.63
5.6.160.0110.05318.77
5.6.150.0090.05518.84
5.6.140.0150.04418.77
5.6.130.0060.04018.88
5.6.120.0100.04818.88
5.6.110.0110.04318.75
5.6.100.0100.03818.77
5.6.90.0090.05318.78
5.6.80.0070.04818.32
5.6.70.0060.03618.28
5.6.60.0100.04918.36
5.6.50.0140.04318.39
5.6.40.0050.04418.21
5.6.30.0110.04618.32
5.6.20.0060.04318.35
5.6.10.0100.04218.38
5.6.00.0090.03718.30
5.5.380.0110.03714.36
5.5.370.0090.04116.50
5.5.360.0080.03416.41
5.5.350.0090.05316.32
5.5.340.0110.03816.79
5.5.330.0110.05416.60
5.5.320.0110.03616.68
5.5.310.0090.03816.65
5.5.300.0090.03716.71
5.5.290.0080.03816.63
5.5.280.0150.05016.76
5.5.270.0130.04516.61
5.5.260.0130.04616.76
5.5.250.0060.04416.54
5.5.240.0090.03516.32
5.5.230.0110.04016.29
5.5.220.0100.05216.22
5.5.210.0060.04316.34
5.5.200.0050.04116.20
5.5.190.0120.03416.31
5.5.180.0060.05316.31
5.5.170.0060.00914.55
5.5.160.0040.04916.27
5.5.150.0070.04916.28
5.5.140.0110.03816.33
5.5.130.0090.05416.25
5.5.120.0110.04116.18
5.5.110.0080.05216.29
5.5.100.0130.05116.12
5.5.90.0070.04116.05
5.5.80.0060.04116.06
5.5.70.0050.03916.14
5.5.60.0080.03416.16
5.5.50.0110.05016.09
5.5.40.0100.03516.14
5.5.30.0110.04416.11
5.5.20.0070.03616.23
5.5.10.0090.03916.24
5.5.00.0050.05616.17
5.4.450.0090.05316.60
5.4.440.0110.04416.58
5.4.430.0040.04116.70
5.4.420.0110.04716.67
5.4.410.0100.04416.56
5.4.400.0100.03916.33
5.4.390.0110.03316.46
5.4.380.0080.03416.33
5.4.370.0050.04016.39
5.4.360.0060.03716.40
5.4.350.0040.05716.43
5.4.340.0030.05216.47
5.4.330.0060.00611.07
5.4.320.0060.04516.45
5.4.310.0080.04816.40
5.4.300.0110.05316.43
5.4.290.0100.05316.38
5.4.280.0140.03816.42
5.4.270.0040.04016.35
5.4.260.0070.04616.39
5.4.250.0120.04316.38
5.4.240.0110.03816.38
5.4.230.0060.04316.40
5.4.220.0050.04716.43
5.4.210.0020.05016.43
5.4.200.0080.03616.43
5.4.190.0090.04916.35
5.4.180.0100.04816.46
5.4.170.0080.04616.39
5.4.160.0130.04716.42
5.4.150.0090.04416.44
5.4.140.0140.04314.75
5.4.130.0060.04014.70
5.4.120.0110.03714.68
5.4.110.0110.04814.63
5.4.100.0100.03914.72
5.4.90.0060.03114.75
5.4.80.0030.03614.77
5.4.70.0050.03514.80
5.4.60.0080.04214.77
5.4.50.0100.03914.72
5.4.40.0030.04714.71
5.4.30.0120.03614.66
5.4.20.0080.04014.68
5.4.10.0070.03714.68
5.4.00.0070.03314.34
5.3.290.0080.03713.02
5.3.280.0080.03912.94
5.3.270.0100.03312.94
5.3.260.0030.03412.94
5.3.250.0080.02912.79
5.3.240.0050.04012.87
5.3.230.0080.03612.95
5.3.220.0070.04212.97
5.3.210.0080.03912.76
5.3.200.0080.02712.91
5.3.190.0030.03512.97
5.3.180.0050.03112.96
5.3.170.0150.02912.84
5.3.160.0050.03112.97
5.3.150.0100.02912.85
5.3.140.0070.03712.92
5.3.130.0120.03412.93
5.3.120.0090.03012.90
5.3.110.0080.03512.87
5.3.100.0050.03412.67
5.3.90.0150.02812.70
5.3.80.0060.03612.62
5.3.70.0050.03112.62
5.3.60.0100.02812.69
5.3.50.0080.03512.54
5.3.40.0040.03612.52
5.3.30.0070.02812.59
5.3.20.0080.02712.49
5.3.10.0050.02812.51
5.3.00.0100.02912.39
5.2.170.0050.03511.26
5.2.160.0080.02911.12
5.2.150.0050.03111.27
5.2.140.0090.02011.05
5.2.130.0030.02811.09
5.2.120.0110.01611.21
5.2.110.0090.02011.09
5.2.100.0080.01911.24
5.2.90.0060.02311.19
5.2.80.0060.02211.03
5.2.70.0030.03211.20
5.2.60.0060.02711.13
5.2.50.0050.03011.14
5.2.40.0070.02611.07
5.2.30.0050.02711.14
5.2.20.0050.02911.17
5.2.10.0030.03411.13
5.2.00.0040.03511.02
5.1.60.0110.02110.57
5.1.50.0050.02410.64
5.1.40.0030.02810.68
5.1.30.0050.02910.65
5.1.20.0060.02210.75
5.1.10.0070.02010.65
5.1.00.0070.02010.68
5.0.50.0050.0209.97
5.0.40.0040.0189.84
5.0.30.0030.0319.80
5.0.20.0100.0139.80
5.0.10.0030.0229.71
5.0.00.0090.0189.74
4.4.90.0050.0168.86
4.4.80.0050.0148.86
4.4.70.0020.0188.86
4.4.60.0020.0178.86
4.4.50.0020.0148.86
4.4.40.0050.0188.86
4.4.30.0070.0158.86
4.4.20.0030.0158.86
4.4.10.0060.0128.86
4.4.00.0050.0218.86
4.3.110.0070.0138.86
4.3.100.0010.0178.86
4.3.90.0020.0168.86
4.3.80.0030.0218.86
4.3.70.0030.0138.86
4.3.60.0030.0188.86
4.3.50.0050.0158.86
4.3.40.0070.0198.86
4.3.30.0000.0158.86
4.3.20.0000.0178.86
4.3.10.0020.0168.86
4.3.00.0020.0158.86

preferences:
33.88 ms | 403 KiB | 5 Q